Il 24/09/24 09:04, Henning Hraban Ramm ha scritto:
Am 24.09.24 um 00:08 schrieb mf:
Any ideas to specify paragraph and character styles?
I’d use \definehighlight for character styles and \defineparagraph for par styles.
For the latter to work, you must add \startparagraph … \stopparagraph around each. Not to be confused with \startparagraphs (plural), which is a columns mechanism. Documentation in the wiki is still lacking (was missing until a few minutes ago).
Hraban
I'm posting here the solution I got from Wolfgang: --------------------------------------------------------- You can try the the \start command which accepts an optional argument which expands to the environment given by the argument when available. When there is no environment with the given name the command pair results in a local group for the content between them. In the following example the first line ignores the argument of \start because no \startimportant environment exists at this point. The second line on the other hand gets formatted because I used \definestartstop to define the \startimportant environment. %%%% begin example \starttext before \start[important]inbetween\stop{} after \definestartstop [important] [color=red,style=bold] before \start[important]inbetween\stop{} after \stoptext %%%% end example Wolfgang --------------------------------------------------------- I reported this solution in the original Pandoc's discussion forum. Thanks Hraban and Wolfgang. Massi