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

list cleaning changes display

Open yocontra opened this issue 9 years ago • 7 comments

Given:

- Possible options for the first argument:
  - adapter
    - defaults to `wildfire.adapters.Memory`
  - httpServer
    - defaults to creating a new http server
    - if this option is not provided, you must call `.listen()`

this will change it to

- Possible options for the first argument:
  - adapter
    - defaults to `wildfire.adapters.Memory`

  - httpServer
    - defaults to creating a new http server
    - if this option is not provided, you must call `.listen()`

which displays differently (adds a bunch of space between items)

yocontra avatar Aug 03 '15 12:08 yocontra

Hmm might not be this plugin, I disabled it and this is still happening. This is a 100% fresh install with no other plugins installed. wat?

yocontra avatar Aug 03 '15 12:08 yocontra

It is definitely this plugin. I have no others which do markdown formatting and when I installed this one today, the same started happening to me. The main issue here is, that it only indents by 2 spaces instead of 4 or a tab. I am not sure what the specification says about the amount of spaces needed for indention of a sublist, but when I compile a markdown file formatted by this plugin using pandoc, sublists are no sublists, but regular list items. When I manually increase the indention to 4 spaces or a tab (which is easier anyway) the resulting PDF file is correct, meaning that there are sublists.

hwroitzsch avatar Dec 21 '15 12:12 hwroitzsch

There is also an issue with numbered lists, which under circumstances can suddenly become unordered lists, when the cleaning happens.

hwroitzsch avatar Dec 21 '15 12:12 hwroitzsch

I also have this problem. Really make's this plugin unusable for me.

derekwolfson avatar Jan 25 '16 04:01 derekwolfson

Oh, there already is an issue for that... so +1 ;)

Senci avatar Feb 25 '16 16:02 Senci

@hwroitzsch - the markdown spec is very loose when it comes to indentation. 2 spaces is fine, tabs are fine, 4 spaces are fine... etc. I'm not sure what pandoc is getting wrong (though I'd be happy to help you debug if you post the command you used & contents of the file).

As for the issue with numbered lists, I think you're talking about this issue: https://github.com/slang800/tidy-markdown/issues/11

notslang avatar Feb 26 '16 10:02 notslang

@slang800 - Sorry, it was some time ago, I don't know anymore what was the exact command I used. I'd guess however, that I didn't use any of Pandoc's extensions back then and used some pandoc template. So the command was probably something like this: pandoc --read=markdown --table-of-contents --toc-depth=2 --preserve-tabs --latex-engine=xelatex --standalone --template=template.tex inputfile.md -o outputfile.pdf

hwroitzsch avatar Feb 26 '16 19:02 hwroitzsch