-
Notifications
You must be signed in to change notification settings - Fork 272
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
Parse div block syntax #327
Comments
@DaveJarvis, I will add it to the to do list but at the moment no PanDoc specific profile or extensions are implemented so it may take a while to add this extension along with other PanDoc specific ones. |
Should anybody need this functionality, attached are a few classes that may help.
Here's a short example usage: final var extensions = new ArrayList<Extension>();
extensions.add( FencedDivExtension.create() );
final IParse parser = Parser.builder().extensions( extensions ).build();
final IRender renderer = HtmlRenderer.builder().extensions( extensions ).build(); This solution works for nested fenced div elements, although it may be suboptimal because the opening and closing If you have questions, you may be best off asking on StackOverflow. |
@DaveJarvis please add a pr... |
@XenoAmess, a PR probably won't happen. If I were to make a flexmark extension at all, it'd be for parsing citations and cross-references, not for fenced DIVs. Here's the latest source code for fenced DIVs as is integrated into my text editor: |
Pandoc now has a DIV syntax for content blocks. For example:
Using the latest version of Pandoc, the above produces:
This would be great to see in FlexMark as well.
The text was updated successfully, but these errors were encountered: