Tehnix / vscode-tidymarkdown

VS Code formatter using tidymarkdown
https://marketplace.visualstudio.com/items?itemName=tehnix.vscode-tidymarkdown
BSD 3-Clause "New" or "Revised" License
2 stars 1 forks source link

Formatting with inline html breaks layout #4

Open marzojr opened 4 years ago

marzojr commented 4 years ago

Inline html tags can cause layout to break with formatter. Here is a before/after example with rendered and source versions.

The same also happens in headings and lists. This is with the latest version available in the VSCode Market.

# Before formatting

multiplication by 2<sup>n</sup>;

Before formatting

multiplication by 2n;


# After formatting

multiplication by 2

  <sup>n</sup>

  ;

After formatting

multiplication by 2

n

;