feat: cut out h3s so only the text is left

This commit is contained in:
Kierán Meinhardt
2019-10-01 21:02:16 +02:00
parent bed2a8a40d
commit 9d755bb420

View File

@@ -29,6 +29,7 @@ kv_text () {
kv_GET "/$text_id.text" \ kv_GET "/$text_id.text" \
| sed -n '/<h1>/,/<!-- Kommentarbox -->/p' \ | sed -n '/<h1>/,/<!-- Kommentarbox -->/p' \
| sed 's/<h3>.\+<\/h3>//g' \
| pandoc -f html -t plain | pandoc -f html -t plain
} }