Skip to content

Is it possible to indent with tabs? #1592

Closed

Description

I would like to indent text with tabs, not spaces. If I press tab, it gives me 4 spaces. How do I use tabs?
I want to make a text like

Color:		red
Name:		Daniel
Location:	Street 12

but with tabs, so it nicely aligns, like here. It's pretty ugly to do that with spaces.

Activity

  1. Jocs commented on Nov 3, 2019

    @Jocs
    Member

    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.

  2. added
    🦁 need discuss
    on Nov 3, 2019
  3. Jocs commented on Nov 3, 2019

    @Jocs
    Member

    Is there any workaround to writing something like that above?

    Why not use table?

  4. Jocs commented on Nov 3, 2019

    @Jocs
    Member

    @r00ster91 I think space also can fix you problem, I still don't know why you only need tab, I use space to format you text above:

    截屏2019-11-03下午10 31 25

  5. added
    🦋 optimization
    on Nov 3, 2019
  6. adrienbeau commented on Nov 4, 2019

    @adrienbeau

    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.

  7. fxha commented on Nov 4, 2019

    @fxha
    Contributor

    @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.

  8. fantazer commented on Nov 6, 2019

    @fantazer

    i need this posible for indent code on python + pug(jade)

    .block
    	.block
    		.block

    but if i am copy code from app i have in my code editor.

    .block
    .block
    .block

    PLS HELP =)

  9. Jocs commented on Nov 6, 2019

    @Jocs
    Member

    but if i am copy code from app i have in my code editor.

    Copy content from Mark Text to other place or from other place to Mark Text?

  10. fantazer commented on Nov 6, 2019

    @fantazer

    but if i am copy code from app i have in my code editor.

    Copy content from Mark Text to other place or from other place to Mark Text?

    Like this

    Alt Text

  11. Jocs commented on Nov 6, 2019

    @Jocs
    Member

    @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).

    截屏2019-11-06下午11 45 43

  12. brainchild0 commented on Jun 19, 2020

    @brainchild0
    Contributor

    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.

  13. leowill01 commented on Mar 4, 2021

    @leowill01

    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:

    Screen Shot 2021-03-04 at 5 25 24 PM

    Screen Shot 2021-03-04 at 5 25 42 PM

    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.

  14. michaeljaeger95 commented on Feb 1, 2022

    @michaeljaeger95

    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.

  15. leowill01 commented on Jul 18, 2022

    @leowill01

    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.

  16. h67ma commented on Nov 11, 2022

    @h67ma

    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.

  17. rpc-scandinavia commented on Nov 28, 2024

    @rpc-scandinavia

    Searching Preferences shows:

    Markdown
    Replace the tab with x spaces
    

    Clicking that does not go to the option.
    I understand here that using tabulator characters is not possible, so I will be mowing on.

  18. sunzx commented on Dec 5, 2024

    @sunzx

    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.

  19. iammihirbhagat commented on Jun 23, 2026

    @iammihirbhagat

    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

  20. added
    🦄 feature request
    on Jun 23, 2026
  21. added 2 commits that reference this issue on Oct 27, 2026
    8c58bb6
    58b6881
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    🦁 need discuss🦄 feature request🦋 optimization

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions