reversemarkdown-net icon indicating copy to clipboard operation
reversemarkdown-net copied to clipboard

Enhance Markdown style

Open PrzemyslawKlys opened this issue 3 years ago • 3 comments

After conversion from HTML to Markdown a lot of markdown rules are not respected.

image

In VSCode when I open the result the makrdownlint extension marks a lot of MD files with warnings.

image

While it's not really a problem, at some point you could maybe look at "optimizing" returned content to be compliant with MD RFC.

  • https://github.com/DavidAnson/markdownlint/blob/v0.20.4/doc/Rules.md#md012
  • https://github.com/DavidAnson/markdownlint/blob/v0.20.4/doc/Rules.md#md041
  • https://github.com/DavidAnson/markdownlint/blob/v0.20.4/doc/Rules.md#md010
  • https://github.com/DavidAnson/markdownlint/blob/v0.20.4/doc/Rules.md#md009

Of course not sure it all makes sense as some people may not want that - just a thought.

PrzemyslawKlys avatar Aug 14 '20 13:08 PrzemyslawKlys

It is going to be quite a challenge to achieve/satisfy linting rules fully since we are converting html back to markdown in the reverse. In most cases, html contains both content as well as html tags corresponding to presentation structure/layouts with several layers of nesting.

mysticmind avatar Aug 17 '20 10:08 mysticmind

Once you have "conversion" ready you can then take that conversion and "optimize it". Maybe another method? First, one does conversion, second optimizes markdown?

PrzemyslawKlys avatar Aug 17 '20 10:08 PrzemyslawKlys

Let me give it a thought on the optimization bit, will keep you posted.

mysticmind avatar Aug 17 '20 11:08 mysticmind