-
Notifications
You must be signed in to change notification settings - Fork 49
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
Lists wrap items in <p> tags #57
Comments
The current behavior was easier to implement and didn't have any drawbacks for my use case. Do you have a use case in mind? |
I came across this via Hugo, seeing that I was getting extra spacing in a list and assuming it was a theme CSS issue at first. I found that the appearance is different than a list from a markdown file. I doubt that the semantic effect matters at all, and the visual effect of the extra tags could be done away with easily enough in CSS. I wonder if go-org might be the place to tackle it though, as most themes won't have a provision for I took a look at the parser and see how a I'm interested to hear your thoughts on this, thanks for taking a look at my ramblings :) |
thx for the context. will take a stab at this sometime. without checking I'd probably go with the hack in html writer list item rendering you suggest. |
I tried giving it a shot with that approach (more or less), and it's looking good—I'm manually going through the tests as I update the files to make sure, and if I hit an edge I'll ask here. |
This also removes extra newlines for simple list items, see changes to tests for details. Closes niklasfasching#57
Perhaps this observation isn't an 'issue' as the current behavior is accounted for in the tests, but the processing of lists is different in go-org than it is in an org export to HTML: it adds
<p>
tags around list items, where org export does not. Is it possible/does it make sense to catch the cases when the list item should be a paragraph withinWriteListItem
(I'm not sure what those cases are), and otherwise write the item as a string? Below is a simple example.Sample input
org-mode export output
(actually it adds a
org-ul
class by default)go-org output
The text was updated successfully, but these errors were encountered: