-
Notifications
You must be signed in to change notification settings - Fork 36
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
spork/mdz eats whitespace #175
Comments
I was able to reproduce, i.e. I noticed the lack of a space and the Fixes would be nice :) A couple of work-arounds [1]:
I'm not suggesting that it wouldn't be better for the current behavior to be improved, the above are just interim alternatives that seem to yield improved results. If one is willing to modify one's content, may be one or the other is useful. [1] Limited testing with either of the work-around via: (htmlgen/html (get (mdz/markup (slurp "file.mdz")) :markup-dom)) seemed to yield ok results here. |
So this is something that has been in mendoza since the beginning and not sure the best way to resolve it - starting a section with a tag is ambiguous in that some tags are "inline" and some tags are block elements. I think the recommended work around of using |
If there's no good way to address this, may be some kind of mention in documentation could be helpful? |
I thought of a rule, which states, Any group of elements with an empty line before and after, if it's only one element, it's not wrapped in otherwise, it is wrapped in
What existing code does this break? |
how to reproduce
now, you should see this output
the space between
Clojure
is andcontains
is gone!Also, the :a tag should be inside :p tag, not before it.
The text was updated successfully, but these errors were encountered: