This reminds me I did some hacking on an (old) Markdown syntax definition found on GitHub to at least give some support to Pandoc extensions, e.g. attributes are highlighted with the item they belong to, spans are highlighted as dsOthers. It could certainly be made more sophisticated but I haven't found out how you specify that an item must follow another item. Should I add it to the GitHub wiki? Den sön 14 maj 2023 18:44John MacFarlane skrev: > Does your xml file define a context called Parameters? This looks like a > problem with your syntax definition > > On May 14, 2023, at 4:40 AM, Karl Weber wrote: > > Hi, > > yesterday I upgraded from release 2.11.3.2 to 3.1.2 and ran into some > incompatibilities. I could fix those related to lua scripts, but I am > stuck > with my syntax definition. (Both releases are the binary distributions > from > the pandoc website.) > > I have my own KDE-style XML syntax definition file named asshell.xml. In > my > global.yaml file it is specifies as > > syntax-definition: ../../../asshell.xml > > This relative path is correct. OS is opensuse. I use this syntax > definition as > > ~~~~~~{.asshell} > blabla > ~~~~~~ > > The file asshell.xml starts with > > > > extensions="*.asshell" priority="5" author="KW" license="GPL"> > > This worked perfectly with releases up to and including 2.11.3.2, but with > 3.1.2 I get the error message > > [WARNING] Could not highlight code block: > Unknown syntax or context: ("asshell","Parameters") > > Could you please give me some help? > > Thanks in advance! > > Kind regards > Karl > > -- You received this message because you are subscribed to the Google Groups "pandoc-discuss" group. To unsubscribe from this group and stop receiving emails from it, send an email to pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/CADAJKhBZuAq%2BynbxJXwTBpSefk6VY4GAmnFkWGFqf-L%2B%2BLTEAA%40mail.gmail.com.