FSharp.Formatting
FSharp.Formatting copied to clipboard
Make F# Formatting compatible with CommonMark
There is an attempt to standardized Markdown at CommonMark which I think it's a good idea.
I tried FSharp.Formatting
with the sample that Jeff Atwood gives, and the output html is below.
<h1>Hello there</h1>
<p>This is a paragraph.</p>
<ul>
<li>one</li>
<li>two</li>
<li>three</li>
<li><p>four</p></li>
<li>pirate</li>
<li>ninja</li>
<li>zombie</li>
</ul>
I just want to throw the idea around. :-)
Looks like F# Formatting is definitely not doing a good job here :-)
Any pull requests that make our implementation closer to the CommonMark format (or whatever it is called today) would be more than welcome.
- I know for sure that the parsing of lists is a mess and needs to be changed!
- The other area is that common markdown describes how to deal with
multiple *nested **emphasis** commands*
(by taking the space into account), which would be nice addition too. - It would also be nice to see if there are any tests in CommonMark that we could adopt.
This is now in progress since https://github.com/tpetricek/FSharp.Formatting/pull/343, feel free to enable one of the sections here, fix all the enabled tests and send a PR ;)
I hope I find some time to add some more documentation here: http://tpetricek.github.io/FSharp.Formatting/development.html
I've made some progress on this: #404
Closing as progress was made in #343 and #404, there are no disabled tests remaining in the linked test?
@dsyme you're staying up too long :D
We have ported all tests from the spec and the numbers are:
Total tests: 707. Passed: 157. Failed: 0. Skipped: 550
So I'd say we aren't anywhere near the spec ;)
Ah cool, good to have the update!