Omikhleia/markdown.sile

Raw blocks stopped working in SILE 0.14.6

Omikhleia opened this issue · 2 comments

$ sile examples/sile-and-markdown-manual.sil -t

SILE v0.14.6.r8-g771d87f-dirty (Lua 5.4)
<examples/sile-and-markdown-manual.sil> as sil
[1] [2] <examples/sile-and-markdown.md> as markdown
[3] [4] <./packages/markdown/commands.lua:304> as sil
<./packages/markdown/commands.lua:304> as sil
[5] <./packages/markdown/commands.lua:304> as sil
[6] ! Underfull frame: 116.55325020005pt stretchiness required to fill but only 72pt available at:
(...)
[7] <./packages/markdown/commands.lua:304> as sil
[8] <./packages/markdown/commands.lua:304> as sil
[9] <./packages/markdown/commands.lua:304> as sil

! Document has more than one parent node that looks like a master document! at:
	./packages/markdown/commands.lua:304: in <snippet>:
		[[For instance, this \em{entire} sentence is typeset in a \em{raw block}, in SILE language.␤]] near examples/sile-and-markdown.md:0:0: in \markdown:internal:rawinline[format="sile"]
	examples/sile-and-markdown.md:0:0: in \markdown:internal:rawinline[format="sile"]
	examples/sile-and-markdown.md: in \markdown:internal:paragraph
	examples/sile-and-markdown.md:0:0: in \markdown:internal:rawblock[format="sile"]
	examples/sile-and-markdown.md: in \texlike_stuff
	examples/sile-and-markdown.md: in <snippet>:
		[[# SILE and Markdown␤␤::: {custom-style=raggedleft}␤"Markdown is intended to be as easy-to-read and e]]
	examples/sile-and-markdown.md: in <snippet>:
		[[# SILE and Markdown␤␤::: {custom-style=raggedleft}␤"Markdown is intended to be as easy-to-read and e]]
	examples/sile-and-markdown-manual.sil:58:1: in \include[src="sile-and-markdown.md"]
	examples/sile-and-markdown-manual.sil: in <snippet>:
		[[\begin[class=resilient.book]{document}␤\use[module=packages.autodoc]␤\use[module=packages.barcodes.e]]


stack traceback:
	[C]: in function 'error'
	/usr/local/share/sile/core/utilities.lua:39: in function 'core.utilities.error'
	/usr/local/share/sile/inputters/sil.lua:211: in function 'inputters.sil.parse'
	/usr/local/share/sile/inputters/base.lua:47: in function 'inputters.markdown.process'
	/usr/local/share/sile/core/sile.lua:300: in function 'core.sile.processString'
	./packages/markdown/commands.lua:304: in field '?'
	/usr/local/share/sile/core/sile.lua:391: in function 'core.sile.call'
	./packages/markdown/commands.lua:320: in function <./packages/markdown/commands.lua:319>
	(...tail calls...)
(...)
error summary:
	Processing at: ./packages/markdown/commands.lua:304: in <snippet>:
		[[For instance, this \em{entire} sentence is typeset in a \em{raw block}, in SILE language.␤]] near examples/sile-and-markdown.md:0:0: in \markdown:internal:rawinline[format="sile"]
	Using code at: /usr/local/share/sile/inputters/sil.lua:211: Document has more than one parent node that looks like a master document!

Introduced in 0.14.6 via sile-typesetter/sile@1740f2d

FWIW, wrapping the raw string in a \document{ ... } seems to work both with 0.14.4 and 0.14.6