From 1892cd9a603e1eda206c40efb576bd75b7532be6 Mon Sep 17 00:00:00 2001 From: "Jason A. Donenfeld" Date: Tue, 23 Feb 2016 06:32:03 +0100 Subject: md2html: Do syntax highlighting too --- filters/html-converters/md2html | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'filters') diff --git a/filters/html-converters/md2html b/filters/html-converters/md2html index 67141ba..c8ee7d9 100755 --- a/filters/html-converters/md2html +++ b/filters/html-converters/md2html @@ -1,5 +1,6 @@ #!/usr/bin/env python import markdown +from pygments.formatters import HtmlFormatter print(''' ''') print("
") # Note: you may want to run this through bleach for sanitization -markdown.markdownFromFile(output_format="html5") +markdown.markdownFromFile(output_format="html5", extensions=["markdown.extensions.fenced_code", "markdown.extensions.codehilite", "markdown.extensions.tables"], extension_configs={"markdown.extensions.codehilite":{"css_class":"highlight"}}) print("
") -- cgit 1.4.1 commit/doc/zlib/deflateReset.3?id=57323fa38902ab680392f71c0aee8a8438e6fff7&follow=1'>commit diff
path: root/doc/zlib/deflateReset.3 (unfollow)
Commit message (Expand)Author
2022-03-06Remove note about having more to sayJune McEnroe
2022-03-06Publish "Voices"June McEnroe
2022-02-22Remove cgit from TOURJune McEnroe
2022-02-14Remove cgitJune McEnroe
2022-02-14Narrow filterJune McEnroe
2022-02-10Correct diminishing shine, I thinkJune McEnroe