You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
With the change to markdown-it-py (#28), we can now add a custom rendering rule for code blocks (the ones with tripple-backticks) that replaces the code block with the rendered version from Pygments (see https://pygments.org/docs/quickstart/). This should be done in markdown_to_html in nene/rendering.py.
Note that this would only add the proper tags and classes without any inline styles. The actual style definitions would come from CSS stylesheets that the user must include in their templates. See https://pygments.org/styles/ for available styles which can be exported to CSS using the command line https://pygments.org/docs/cmdline/#generating-styles.
The text was updated successfully, but these errors were encountered:
With the change to markdown-it-py (#28), we can now add a custom rendering rule for code blocks (the ones with tripple-backticks) that replaces the code block with the rendered version from Pygments (see https://pygments.org/docs/quickstart/). This should be done in
markdown_to_html
innene/rendering.py
.Note that this would only add the proper tags and classes without any inline styles. The actual style definitions would come from CSS stylesheets that the user must include in their templates. See https://pygments.org/styles/ for available styles which can be exported to CSS using the command line https://pygments.org/docs/cmdline/#generating-styles.
The text was updated successfully, but these errors were encountered: