pub / zeitung

News-Aggregator in newspaper style as HTML/PDF/EPUB
git clone src.jayvii.de/pub/zeitung.git
Home | Log | Files | Exports | Refs | README | RSS

commit 7fb00370f8d14812e2357c4d29041c636deb353e
parent 3f358980d4120ac6cac9d63277e2658dae1e7097
Author: JayVii <jayvii[AT]posteo[DOT]de>
Date:   Mon, 12 Oct 2026 16:16:55 +0200

feat: handle blockquotes

Diffstat:
Mgenerate.sh | 4++++
1 file changed, 4 insertions(+), 0 deletions(-)

diff --git a/generate.sh b/generate.sh @@ -114,6 +114,10 @@ perl -pe 'BEGIN{undef $/;} s/<i[^>]*?>\s*(.*?)\s*<\/i>/ _$1_ /smg' \ perl -pe 'BEGIN{undef $/;} s/<em[^>]*?>\s*(.*?)\s*<\/em>/ _$1_ /smg' \ -i ./output/zeitung.md +## replace blockquotes with their markdown counterparts +perl -pe 'BEGIN{undef$\;} s/<blockquote[^>]*?>(.*?)<\/blockquote>/\n> $1\n/smg' \ + -i ./output/zeitung.md + ## remove any content that is within specific html tags perl -pe 'BEGIN{undef $/;} s/<time[^>]*?>.*?<\/time>//smg' \ -i ./output/zeitung.md