aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Thompson <daniel.thompson@linaro.org>2016-05-12 20:53:27 +0100
committerDaniel Thompson <daniel.thompson@linaro.org>2016-05-12 20:53:27 +0100
commite5d33d66dabdedfed01adbd110ddabef77ad4118 (patch)
tree64a3a9352c7945e9c579ea50d3f1ff2f1fea21b4
parent5024cfd96249a087e569bd59bbb751994a1ccdf8 (diff)
Make sure we handle second level headings differently to questions
Questions are [strong] so lets make sure [h2] sections are [strong][em] to make them distinct. Signed-off-by: Daniel Thompson <daniel.thompson@linaro.org>
-rw-r--r--wordpressify.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/wordpressify.py b/wordpressify.py
index a2678bf..e4f76c4 100644
--- a/wordpressify.py
+++ b/wordpressify.py
@@ -11,8 +11,8 @@ for fname in sys.argv[1:]:
ln = ln.replace('</p>', '')
ln = ln.replace('<p>', '\n')
- ln = ln.replace('<h2>', '<strong>')
- ln = ln.replace('</h2>', '</strong>')
+ ln = ln.replace('<h2>', '<strong><em>')
+ ln = ln.replace('</h2>', '</em></strong>')
ln = ln.replace('<h3>', '<strong>')
ln = ln.replace('</h3>', '</strong>')