Skip to content

Intent with tabs at code blocks #2114

Description

@jwurzer

Is there a way to use tabs for indentations in code blocks?

Currently it looks like tabs are always converted to spaces.
Also existing tab indentations are currently converted to spaces.
If I have a Markdown file with a code block with tabs (e.g. Makefile content) like

all: test.c
	gcc -Wall test.c

it is converted to

all: test.c
    gcc -Wall test.c

which is very frustrating :-(

It looks like Typora using the existing style if a code block already exist. A similar behaviour would be fine in Mark Text. Or to config in the settings would be also fine ;-)

I do not want to start a discussion about Spaces vs Tabs. But there are scripts and languages where tabs must or should be used. Like Makefile or Go.

There is already a similar Issue 1592. But maybe it's possible to support tabs at least for code blocks.

Sorry for my bad English ;-)

best regards
Jürgen

Activity

  1. added
    🐛 bug
    🪲 pri/major
    :octocat: code block
    on May 16, 2026
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

    🪲 pri/major:octocat: code block🐛 bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions