Sublime Forum

Line wrapping in Markdown files

#1

I’m new here, and I’m trying to make the switch from VS Code to Sublime Text. I’m not a developer, but I regularly work with thousands of Markdown files.

It seems I’m doing something wrong:

Line wrapping in Markdown files doesn’t work correctly with (at least) the following characters: `()[]*

For example:

What’s strange is that " doesn’t seem to be affected.

I’m not seeing that weird line wrapping in VS Code:

Visual_Studio_Code

What am I doing wrong?

0 Likes

#2

That’s a known ST issue.


1 Like

#3

Oh no, there’s an 11-year-old bug report for this issue. :frowning:

I was about to buy a license for Sublime Text, but now I’m having second thoughts.

Is there a (technical) reason why this bug is still there?

0 Likes

#4

Most likely reason might be it not neccessarily being a bug in common sense, because brackets are word separators, which do not have any special association with preceding or following text.

It is a syntax specific convention for them to start and belong to links in Markdown, thus expecting them to be wrapped together with whole link.

As a general purpose text/code editor ST however implements common syntax agnostic functions/behavior, which may not fullfill all expectations of every single syntax perfectly well.

Hence those tickets are labled “enhancement”, requesting some sort of functionality to maybe improve heuristics or add some sort of configuration to adapt behavior for certain syntaxes.

1 Like