Re: Custom styles support

Posted by pepijnve on
URL: https://discuss.asciidoctor.org/Custom-styles-support-tp441p446.html

Initially my needs are pretty basic I think. What I want to do is mark paragraphs in the text with a custom style and get them rendered kind of like admonition blocks are rendered.

To be more concrete:

[requirement]
AsciiDoctor shall support custom block styles

should get turned into (for instance)
________________________
*Req {counter:requirement}* AsciiDoctor shall support custom block styles
________________________

In other words, I would like to be able to transform the text from the source document and add autogenerated text to it. The output of the filter in this case is still in asciidoc syntax so it should still be processed for substitutions (or there should be a way to trigger processing on the text via the api).