Re: Interpret links (or other AsciiDoc syntax) only in specific lines of a [source] block
Posted by Oblomov on Feb 18, 2021; 6:50pm
URL: https://discuss.asciidoctor.org/Interpret-links-or-other-AsciiDoc-syntax-only-in-specific-lines-of-a-source-block-tp8499p8517.html
OK, there is ONE annoying thing about this strategy, that I've seen so far: even if the only thing I want to do is override one particular aspect, I basically have to copy over the entire highlight method. Let's say that I only want to support rouge: `highlight` does a lot of autoguessing and formatter tuning, and then closes by calling the formatter on the lexer on the source. It would be nice if there a hook right before that line, so that a plugin or extension could do fine-tuning to the lexer and/or formatter without having to copy the entire logic of the function 8-/