From: list at eworm.de (Christian Hesse)
Subject: [PATCH 1/1] filters: force python 3.x and fix options
Date: Mon, 12 Oct 2015 17:34:22 +0200 [thread overview]
Message-ID: <1444664062-23229-1-git-send-email-list@eworm.de> (raw)
From: Christian Hesse <mail at eworm.de>
The python markdown module is a little bit picky when it come to
options. So force python 3.x and fix the options. Documentation says
about input:
[...] or None (default) which will read from stdin.
Signed-off-by: Christian Hesse <mail at eworm.de>
---
filters/html-converters/md2html | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/filters/html-converters/md2html b/filters/html-converters/md2html
index 1488f48..8adedbe 100755
--- a/filters/html-converters/md2html
+++ b/filters/html-converters/md2html
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python3
import markdown
import sys
print('''
@@ -282,5 +282,5 @@ print('''
''')
print("<div class='markdown-body'>")
# Note: you may want to run this through bleach for sanitization
-markdown.markdownFromFile(input=sys.stdin, output_format="html5")
+markdown.markdownFromFile(input=None, output_format="html5")
print("</div>")
--
2.6.1
next reply other threads:[~2015-10-12 15:34 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-10-12 15:34 list [this message]
2015-10-12 16:34 ` Jason
2015-10-12 18:13 ` list
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1444664062-23229-1-git-send-email-list@eworm.de \
--to=cgit@lists.zx2c4.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).