aboutsummaryrefslogtreecommitdiff
path: root/src/renderers/textstyleinstance.cpp
diff options
context:
space:
mode:
authorFelix (xq) Queißner <git@mq32.de>2020-06-23 10:28:04 +0200
committerFelix (xq) Queißner <git@mq32.de>2020-06-23 10:28:04 +0200
commit694c1f6d276d0a4ea3422a02db0f6cf96313b733 (patch)
treee8d9c99a06c4584bcb011f6aa55858e3f054ea7a /src/renderers/textstyleinstance.cpp
parent0860a8ec32fd01b6fdea92e1e6a80de096e2e694 (diff)
downloadkristall-694c1f6d276d0a4ea3422a02db0f6cf96313b733.tar.gz
Further improves markdown rendering.
Diffstat (limited to 'src/renderers/textstyleinstance.cpp')
-rw-r--r--src/renderers/textstyleinstance.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/renderers/textstyleinstance.cpp b/src/renderers/textstyleinstance.cpp
index e7295b0..6d734f1 100644
--- a/src/renderers/textstyleinstance.cpp
+++ b/src/renderers/textstyleinstance.cpp
@@ -25,4 +25,9 @@ TextStyleInstance::TextStyleInstance(DocumentStyle const & themed_style)
standard_h3.setFont(themed_style.h3_font);
standard_h3.setForeground(QBrush(themed_style.h3_color));
+
+ preformatted_format.setNonBreakableLines(true);
+
+ block_quote_format.setIndent(1);
+ block_quote_format.setBackground(themed_style.blockquote_color);
}