From 322c37d6935170a431c90bcfb888e444befaab3d Mon Sep 17 00:00:00 2001 From: Nils-Hero Lindemann Date: Tue, 7 Apr 2020 21:39:13 +0200 Subject: [PATCH] Let chained `>` blockquotes generate valid HTML (#4332) * Replace "p" with "div" in itemTag '>> text' will now be valid html. * Make the new div's behave like p's --- core/modules/parsers/wikiparser/rules/list.js | 2 +- themes/tiddlywiki/vanilla/base.tid | 5 +++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/core/modules/parsers/wikiparser/rules/list.js b/core/modules/parsers/wikiparser/rules/list.js index 8ecb91108..17eab6dad 100644 --- a/core/modules/parsers/wikiparser/rules/list.js +++ b/core/modules/parsers/wikiparser/rules/list.js @@ -60,7 +60,7 @@ var listTypes = { "#": {listTag: "ol", itemTag: "li"}, ";": {listTag: "dl", itemTag: "dt"}, ":": {listTag: "dl", itemTag: "dd"}, - ">": {listTag: "blockquote", itemTag: "p"} + ">": {listTag: "blockquote", itemTag: "div"} }; /* diff --git a/themes/tiddlywiki/vanilla/base.tid b/themes/tiddlywiki/vanilla/base.tid index 2541938c1..9809dcf11 100644 --- a/themes/tiddlywiki/vanilla/base.tid +++ b/themes/tiddlywiki/vanilla/base.tid @@ -130,6 +130,11 @@ blockquote { quotes: "\201C""\201D""\2018""\2019"; } +blockquote > div { + margin-top: 1em; + margin-bottom: 1em; +} + blockquote.tc-big-quote { font-family: Georgia, serif; position: relative;