Open
Conversation
CodeBlocks need to be marked with the '.magick' class like so:
~~~{.magick}
Otherwise the codeblock will be ignored.
Member
There was a problem hiding this comment.
If these values will be boolean in nature, then I would argue them as flags, and can be classnames
~~~{.generate_image}
//...code...
~~~
The the check would be as simple as..
if 'generate_image' in classes:
# Do work
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds filter to execute magick code.
All images are created in the '_images' directory (might need to be created first)
Existing images will not be overwritten - we might want to add a command to the makefile like clean_images
The filter will not blindly execute any codeblock, but expects a key/value pair:
Another switch enables the automatic generation of HTML code including the
tag for the generated image:
Example CodeBlock:
Note: Using fenced code blocks
see http://pandoc.org/README.html#fenced-code-blocks
and jgm/pandoc#673
Current limitations: