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
What's the difference between tab and space? it seems difficult to support tab, because we'll replace all tabs into 4 space when we parse markdown content.
I believe Markdown is not suited for such a text-alignment feature, which is more typical of a word processor. As far as I know, no other Markdown processor implements it.
How would you configure the tab stops? How do you ensure what is correctly lined-up in one Markdown program will also be correctly lined-up in another? What looks good in HTML could be broken in PDF, with a different font, etc.
It looks like you should use a table for your example. A definition list may also work.
@Jocs FYI, markedjs replace all spaces with four spaces but doesn't follow markdown specification because tabs should only converted to spaces at the beginning and end of a line.
For code blocks, as @Jocs notes, text should be preserved as literal character sequences. (Thank you for the fix.)
For Markdown text, as in other semantic languages, white-space characters do not represent actual characters in the text, but rather indicate of word boundaries (or line breaks or paragraph breaks). A single space character, a single tab character, or a thousand of either is all collapsed into a single word boundary.
I am still getting tab > spaces conversion inside text blocks and lists, as seen when the file is opened in or text is copied over to VS Code:
Not only are the tabs replaced by spaces, but it doesn't even seem to follow the settings "Preferred tab width" (set to "4") or "Preferred list indentation" (set to "True tab character") in any rational manner.
But ideally I would like to use literal tabs instead of spaces everywhere, not just code blocks.
no other Markdown processor implements it
VS Code, RStudio, and Typora all support tabs for .md files. Mark Text is the first program I've used that does not. Maybe it's specifically due to the Commonmark spec because I personally use Pandoc Markdown and I've never had an issue with tabs.
Sadly I though this would have been implemented by now, but it's a dealbreaker for me not being able to use tabs. It's not really about alignment, it's about indentation & character consistency. 1 indent level = 1 tab = ...1 space? 2 spaces? 4 spaces? 8 spaces? Marktext is still the only app I've ever seen that doesn't give the option to use tabs.
I wanted to like Marktext because I need the autosave feature, but I've since moved to Zettlr + Panda.
Any update on this? I also prefer to use tabs for indentation of lists and code. Preferred list indentation = True tab character is currently broken - lists are still being indented with two spaces instead of tab character.
Reacted by Michael Jäger, Leo Williams, Ethan Dai and Mark W
What's the difference between tab and space? it seems difficult to support tab, because we'll replace all tabs into 4 space when we parse markdown content.
Replace tab with 4 spaces only valid at line start. Tab is more often used to align text to the next tabulator stop. in this circumstance, tab can be any spaces between 0 to 4.
In the example from @wooster0 , two tabs are 6 spaces in the first line, 7 spaces in the second line.
Activity
Jocs commentedon Nov 3, 2019
What's the difference between
tabandspace? it seems difficult to supporttab, because we'll replace alltabsinto 4 space when we parse markdown content.Jocs commentedon Nov 3, 2019
Why not use table?
Jocs commentedon Nov 3, 2019
@r00ster91 I think
spacealso can fix you problem, I still don't know why you only needtab, I usespaceto format you text above:adrienbeau commentedon Nov 4, 2019
I believe Markdown is not suited for such a text-alignment feature, which is more typical of a word processor. As far as I know, no other Markdown processor implements it.
How would you configure the tab stops? How do you ensure what is correctly lined-up in one Markdown program will also be correctly lined-up in another? What looks good in HTML could be broken in PDF, with a different font, etc.
It looks like you should use a table for your example. A definition list may also work.
fxha commentedon Nov 4, 2019
@Jocs FYI, markedjs replace all spaces with four spaces but doesn't follow markdown specification because tabs should only converted to spaces at the beginning and end of a line.
fantazer commentedon Nov 6, 2019
i need this posible for indent code on python + pug(jade)
but if i am copy code from app i have in my code editor.
.block
.block
.block
PLS HELP =)
Jocs commentedon Nov 6, 2019
Copy content from Mark Text to other place or from other place to Mark Text?
fantazer commentedon Nov 6, 2019
Like this
Jocs commentedon Nov 6, 2019
@fantazer Thanks for reporting this issue, this already fixed on develop branch, and we'll release 0.16.0 in the middle of this month.
This codes bellow is copied from vscode to Mark Text(develop branch).
brainchild0 commentedon Jun 19, 2020
For code blocks, as @Jocs notes, text should be preserved as literal character sequences. (Thank you for the fix.)
For Markdown text, as in other semantic languages, white-space characters do not represent actual characters in the text, but rather indicate of word boundaries (or line breaks or paragraph breaks). A single space character, a single tab character, or a thousand of either is all collapsed into a single word boundary.
leowill01 commentedon Mar 4, 2021
I am still getting tab > spaces conversion inside text blocks and lists, as seen when the file is opened in or text is copied over to VS Code:
Not only are the tabs replaced by spaces, but it doesn't even seem to follow the settings "
Preferred tab width" (set to "4") or "Preferred list indentation" (set to "True tab character") in any rational manner.But ideally I would like to use literal tabs instead of spaces everywhere, not just code blocks.
VS Code, RStudio, and Typora all support tabs for
.mdfiles. Mark Text is the first program I've used that does not. Maybe it's specifically due to the Commonmark spec because I personally use Pandoc Markdown and I've never had an issue with tabs.michaeljaeger95 commentedon Feb 1, 2022
I agree with @leowill01, having the option to use true tabs for indentation is an essential feature for a markdown editor.
As it stands, I'd rather stay with the last free Typora version or even nano.
leowill01 commentedon Jul 18, 2022
Sadly I though this would have been implemented by now, but it's a dealbreaker for me not being able to use tabs. It's not really about alignment, it's about indentation & character consistency. 1 indent level = 1 tab = ...1 space? 2 spaces? 4 spaces? 8 spaces? Marktext is still the only app I've ever seen that doesn't give the option to use tabs.
I wanted to like Marktext because I need the autosave feature, but I've since moved to Zettlr + Panda.
h67ma commentedon Nov 11, 2022
Any update on this? I also prefer to use tabs for indentation of lists and code.
Preferred list indentation=True tab characteris currently broken - lists are still being indented with two spaces instead of tab character.rpc-scandinavia commentedon Nov 28, 2024
Searching Preferences shows:
Clicking that does not go to the option.
I understand here that using tabulator characters is not possible, so I will be mowing on.
sunzx commentedon Dec 5, 2024
Replace
tabwith 4 spaces only valid at line start.Tabis more often used to align text to the next tabulator stop. in this circumstance,tabcan be any spaces between 0 to 4.In the example from @wooster0 , two tabs are 6 spaces in the first line, 7 spaces in the second line.
iammihirbhagat commentedon Jun 23, 2026
I am trying to work with multi-level indentation containing both plain texts & code blocks. But it's behaving very buggy.
Overall UI/UX is good but it all goes to waste once I start writing stuff.
Mac app v0.19.1
fix: #1592 support real tabs in the visual editor
fix: #1592 support real tabs without source syntax metadata