-
Notifications
You must be signed in to change notification settings - Fork 32
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
Line breaks in the markdown docs are translated as <br />
tags erroneously.
#384
Comments
<br />
tags erroneously.
@thenickcox The only other piece of the process would be our fork of docco that @peterblazejewicz did. @peterblazejewicz any thoughts? |
Now that we're talking about it, there is a call in the |
hmm open to ideas of fixes that you think can make it better, but yeah all of the docs require a bit of massaging to get "right" |
I mean, if the core team thought that would be an acceptable fix, far be it from me to say otherwise. Let me know if you'd like me to submit a PR with that same function call (or abstracted to avoid duplication), and I'll go ahead with that. |
@thenickcox that would be awesome! |
Great. The only downside I could see to that is that any intentional <br> tag in the docs would get thrown out. We could add a check for a class like |
@samccone @thenickcox do |
I'll look into this, but I wasn't able to get my dev environment running due to a jade compilation error. |
Okay. Thanks to @peterblazejewicz's fix, I should be able to take a look at this tonight. |
This has been bothering me about the docs for a while. I recently had a documentation PR merged in Marionette core, and part of that removed the line breaks in the docs because they were being converted to
<br />
tags. But I was browsing the Markdown docs today, and a Markdown parser should only insert a<br />
tag if there are two line breaks. This is not the case on these docs; each single line break in the docs is parsed as a<br />
tag. (To verify, check the compiled HTML)I did some digging and thought maybe it was an issue with
marked
, the markdown parsing library used to compile the docs here. So I made a Codepen to test some markdown with a line break in it, and it correctly renders as a space.My conclusion at this point is that it's something in the
compile-docs.js
task. But nothing immediately jumps out to me as being at fault.I'm filing this issue because I'm working on a PR for some docs, and I had been removing the line breaks so that they don't render as
<br />
tags, but I'm now convinced that's not a great solution, because it makes them harder to read.The text was updated successfully, but these errors were encountered: