You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I wanted to try using markdown.sile's Djot inputter for a project I'm working on which involves re-typesetting an old book. As part of this I need to be able to have, depending on context, block quotes treated as being part of the same contiguous paragraph, meaning, among other things, that e.g. the paragraph following it should not have any paragraph indentation.
The simple solution would be to just define my own blockquote environment which ends in SILE.call("set", { parameter="current.parindent", value="0pt" }), which works. The problem I had though is that I'd like to be able to toggle this behavior based on e.g. specifying a class attribute for the block quote, but attributes don't end up being passed in to the called commands.
Is this intentional, and is there any simple way to access the attributes from my custom command?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I wanted to try using
markdown.sile
's Djot inputter for a project I'm working on which involves re-typesetting an old book. As part of this I need to be able to have, depending on context, block quotes treated as being part of the same contiguous paragraph, meaning, among other things, that e.g. the paragraph following it should not have any paragraph indentation.The simple solution would be to just define my own
blockquote
environment which ends inSILE.call("set", { parameter="current.parindent", value="0pt" })
, which works. The problem I had though is that I'd like to be able to toggle this behavior based on e.g. specifying a class attribute for the block quote, but attributes don't end up being passed in to the called commands.Is this intentional, and is there any simple way to access the attributes from my custom command?
Beta Was this translation helpful? Give feedback.
All reactions