Re: Interpret links (or other AsciiDoc syntax) only in specific lines of a [source] block
Posted by Oblomov on Feb 16, 2021; 2:57pm
URL: https://discuss.asciidoctor.org/Interpret-links-or-other-AsciiDoc-syntax-only-in-specific-lines-of-a-source-block-tp8499p8505.html
Hello Dan,
I see, a posteriori it makes sense that hooking directly into the syntax highlighter would be the appropriate thing to do.
If I'm reading the thing correctly, the `highlight` method is where most of the magic happens, and the idea would be to use this to override/extend the source -> lexer -> formatter(s) chain.
I'll study this thing a bit to see which part of the chain would be more useful to hijack / override / extend.
Thanks a lot,
GB