-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Preprocessor line reader #32
Comments
The line processing loop in preprocessors is now exemplified in the following:
... and I've just realised: it also needs to include block comments. |
I'm adding this to all Preprocessors under Metanorma. @HassanAkbar That includes metanorma-plugin-glossarist |
Actually, no: datastruct and lutaml do need to be able to populate sourcecode and even comment text. I'm not going to insert it, at least for now, outside where I already have, the embed and link preprocessors. If we need to change that, we know where the method is. |
This did debug some of the detecting of passthrough status, so it was worthwhile. |
In https://github.com/metanorma/metanorma-standoc/blob/main/lib/metanorma/standoc/macros.rb , there is code to determine the status of a line during preprocessing of Asciidoctor, pass_status(). That code is used in the LinkProtectPreprocessor, so that lines that are passthrough or comments are not processed by that preprocessor. It needs to be made into a class, and brought into utils, so it can be shared among all line-based preprocessors; that includes metanorma-plugin-preprocessor, per metanorma/metanorma-plugin-glossarist#27
The text was updated successfully, but these errors were encountered: