ponymail-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From humbed...@apache.org
Subject [2/3] incubator-ponymail-site git commit: support pre wrappers
Date Tue, 31 May 2016 08:08:30 GMT
support pre wrappers


Project: http://git-wip-us.apache.org/repos/asf/incubator-ponymail-site/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-ponymail-site/commit/f7253fe6
Tree: http://git-wip-us.apache.org/repos/asf/incubator-ponymail-site/tree/f7253fe6
Diff: http://git-wip-us.apache.org/repos/asf/incubator-ponymail-site/diff/f7253fe6

Branch: refs/heads/asf-site
Commit: f7253fe60a0dda740aa92dbd7fde9e70d5976a07
Parents: 52079c8
Author: humbedooh <humbedooh@apache.org>
Authored: Tue May 31 10:08:06 2016 +0200
Committer: humbedooh <humbedooh@apache.org>
Committed: Tue May 31 10:08:06 2016 +0200

----------------------------------------------------------------------
 source/generate.py | 1 +
 1 file changed, 1 insertion(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-ponymail-site/blob/f7253fe6/source/generate.py
----------------------------------------------------------------------
diff --git a/source/generate.py b/source/generate.py
index f958a5c..2af484d 100644
--- a/source/generate.py
+++ b/source/generate.py
@@ -19,6 +19,7 @@ def runDir(path):
             outfile = f.replace(".md", ".html").lower().replace("//", "/")
             outfile = path.replace("markdown", "", 1) + outfile
             text = input_file.read()
+            text = re.sub(r"~~~([\s\S]+?)~~~", "<pre>\\1</pre>", text, flags=re.MULTILINE)
             html = markdown.markdown(text)
             html = template.replace("%CONTENT%", html, 1)
             print("Writing %s..." % outfile)


Mime
View raw message