Is it possible to set indent for QTextEdit's markdown content
-
I am currently exploring QTextEdit's rendering of Markdown text. The problem is shown in the below image:
In the original plain text (bottom half), my "- Hello worldsd"'s indent is expected (well actually it is not indent, just some margin). But in the rendered textbox (top half), the indent becomes very large, occupying ~20% of the entire width of my QTextEdit.
My question is whether or not it is possible to make the indent smaller, ideally configurable.Thanks,
-
I am currently exploring QTextEdit's rendering of Markdown text. The problem is shown in the below image:
In the original plain text (bottom half), my "- Hello worldsd"'s indent is expected (well actually it is not indent, just some margin). But in the rendered textbox (top half), the indent becomes very large, occupying ~20% of the entire width of my QTextEdit.
My question is whether or not it is possible to make the indent smaller, ideally configurable.Thanks,
@mamsds Welcome to the Qt forums.
I would start by looking at QTextEdit::tabStopDistance() to see if that adjusts the indenting depth of the lists.
Markdown is not WYSIWYG and you have asked for nested unordered lists, which it has given you. I do not consider that there is a problem here.
-
@mamsds Welcome to the Qt forums.
I would start by looking at QTextEdit::tabStopDistance() to see if that adjusts the indenting depth of the lists.
Markdown is not WYSIWYG and you have asked for nested unordered lists, which it has given you. I do not consider that there is a problem here.
Hi @ChrisW67 , for
tabStopDistance()
, I actually checked it before posting. It doesnt help in this case.
On nested list argument, note that I was talking about the first line, i.e.,* Hello worldsd
line, the indent is large already. I am not specifically asking to tweak the indent of the 2nd line (i.e.,* asd
)