atom-tidy-markdown icon indicating copy to clipboard operation
atom-tidy-markdown copied to clipboard

Rendering of code blocks within lists and number of whitespaces mismatch

Open edubrito opened this issue 6 years ago • 2 comments

Several markdown renderers, like the one from Retext or Bitbucket, seem to require that the indentation of bulleted lists be in multiple of 4 spaces, the same applying for code blocks within lists. They render incorrectly if not. I'm using tidy-markdown in Atom, and it enforces multiple of 2 spaces, instead of 4. There is no setting to change it.

The rendering is fine in the markdown preview that I'm using in Atom, but not on external viewers, like Retext or Bitbucket, when the the markdown is formatted by tidy-markdown.

The requirement of indenting by multiples of 4 spaces is mentioned here: https://meta.stackexchange.com/a/7837

Please change the default indentation to 4 spaces for both nested-lists and fenced code blocks indented within such lists.

edubrito avatar May 26 '19 07:05 edubrito

An example of how the fenced code blocks get a strange formatting is also reported here.

edubrito avatar May 26 '19 07:05 edubrito

@edubrito Hi, maybe you have more luck with your request by creating an issue here. As noted in README.md this atom plugin uses internally tidy-markdown and as long as you aren't able to specify the number of spaces used for indention there, this plugin will not adopt an appropriate configuration option.

Best regards, Andi

atschwarz avatar Sep 13 '19 10:09 atschwarz