You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm still considering syntax for block formatting. The Tokenizer class, and the converter classes, can already handle block (paragraph) formats, so perhaps it is an idea to add a simple syntax for setting a format for a given block. For instance:
[L] for left aligned
[C] for centred
[R] for right aligned
[H] for highlighted
[Q] for block quote
Perhaps even more. The benefit is that the codes can be extended without the need to invent numerous new types of code.
The block should start or end with these characters to have its block format set, and the codes themselves could potentially be set to hidden so that they only exist in the actual file stored to disk, and are read into the block data of the QTextDocument when the document text is set.
Still have to think more about this, but doing this means the code is moving away from being plain text with markup as well.
This feature issue has been replaced with #803. Instead of block quotes, the syntax allows for indented blocks (or rather, blocks with a margin). This can be used for block quotes and uses the same syntax as proposed here.
Add support for block quotes. The syntax would be as simple as starting a line with
>
, so it can use the same parsing logic as comments.The text was updated successfully, but these errors were encountered: