-
Notifications
You must be signed in to change notification settings - Fork 52
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
Use markdown in rdfs:comments and other fields #64
Comments
LODE uses https://github.com/chjj/marked and |
Think the underlying problem here is that the Markdown templates use the Django
Which is entirely unnecessary since Markdown will handle line breaks naturally anyway. The by-product of this is that Markdown in the So think the Markdown templates just want updating to not use the |
The Markdown Django templates were using the linebreaks filter on some of the content. This filter wraps content using <p> and <br />. However this means that if the ontology was using Markdown in their comments this would not get rendered as most Markdown renderers don't apply rendering inside of HTML block elements like <p>. It was also unnecessary since Markdown renderers already use line breaks to suitably render paragraphs. This was most applicable for descriptions of things since those are the places were ontology authors were most likely to want to use Markdown to explain the intended usage of their ontology concepts. By removing the use of this filter the ontology descriptions are output as-is in the generated Markdown files allowing any Markdown in them to be rendered by whatever Markdown renderer the user ultimately chooses.
I use markdown in rdfs:comments and other fields and I would like to display that markdown rendered as text on the pages. How could that be done?
The text was updated successfully, but these errors were encountered: