From 01c80666fcb799b1889537ea172114be3b08fc57 Mon Sep 17 00:00:00 2001
From: ryanss
Date: Sun, 1 Mar 2015 22:22:28 -0500
Subject: Replace italic tags with _italic_ underscores
---
ftplugin/hackernews.py | 2 ++
1 file changed, 2 insertions(+)
(limited to 'ftplugin/hackernews.py')
diff --git a/ftplugin/hackernews.py b/ftplugin/hackernews.py
index 26cfa62..1fc205c 100644
--- a/ftplugin/hackernews.py
+++ b/ftplugin/hackernews.py
@@ -275,6 +275,7 @@ def print_content(content):
if not p:
continue
p = html.unescape(p)
+ p = p.replace("", "_").replace("", "_")
# Convert Text tags
# to markdown equivalent: (Text)[http://url/]
@@ -311,6 +312,7 @@ def print_comments(comments, level=0):
if not p:
continue
p = html.unescape(p)
+ p = p.replace("", "_").replace("", "_")
# Extract code block before textwrap to conserve whitespace
code = None
--
cgit v1.2.3