-
-
Notifications
You must be signed in to change notification settings - Fork 89
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Option to disable sub headers by dashes/equal-signs? #185
Comments
Which behaviour are we takling about? 😅
You could customize the styling completely like QOwnNotes does. |
No, not really, that's just Markdown. Why would you want to disable that specific syntax of Markdown?
You can just override the style, like in: |
Sometimes I (and I believe many others, especially non Markdown users) just want to create a line seperator below some text without formatting the text above it as a header. But I think I'll keep the current behavior, it's just good to know I can ovveride it.
Awesome, thanks! Two more questions:
qreal codeBlockFontSize = fontSize - 2;
_formats[static_cast<HighlighterState>(HighlighterState::InlineCodeBlock)].setFontPointSize(codeBlockFontSize);
_formats[static_cast<HighlighterState>(HighlighterState::CodeBlock)].setFontPointSize(codeBlockFontSize);
_formats[static_cast<HighlighterState>(HighlighterState::CodeBlockComment)].setFontPointSize(codeBlockFontSize); But the size of some syntex of cpp stays the same while the rest does gets smaller (I set a very small number below just to show the difference):
|
|
That's our customMarkdownHighlighter.cpp. Did I miss any |
Well, there are lots of code-states: qmarkdowntextedit/markdownhighlighter.h Lines 82 to 177 in b2926ab
|
Hi, @pbek!
Is there an option to disable the behaviour of
---
or===
creating sub headlines?Or at least/also an option just to disable the background highlighting of these?
Thanks!
The text was updated successfully, but these errors were encountered: