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
nested list indentation of 4 spaces causes <pre> blocks in hugo #344
Comments
I can reproduce that on this commonmark dingus (somehow that link doesn't work for me on Firefox, but works on Chrome). Can you play around with that can come up with a markdown format that acts as a workaround?
I am not aware of |
OK, look like it works if I remove those extra spaces from after the hyphen: demo |
|
@sprajagopal Can you confirm the fix? I have added a test case for this: https://ox-hugo.scripter.co/test/posts/level-offset-default/ Thanks for reporting this! |
This is to cover the corner case where the previous section could be ending in a plain list, and we want the current heading-turned-list-item to merge that that list. This is possible is the current heading level is 6 or more, or if the `h' Export Option is set to a lower value by the user. Related: #344
Hello,
It renders correctly in html also with hugo. |
Sorry I typoed. It was
|
Ah right! It's been a while since I added that. Those are Blackfriday extensions, and will not work with Goldmark. Both are Markdown rendering libraries. Goldmark is a much better one as it is compliant with commonmark. Hugo switched to making Goldmark as the default library since Hugo 0.60.0. At some point, I will move out the dead Blackfriday code in this repo to a separate library in an archived state. |
Actual Behavior
I am exporting my org files with ox-hugo. I opened an issue but it seems this behaviour as per markdown spec.
I went through
ox-hugo.el
and found reference totabSizeEight
which may solve this issue. But I am not sure how to enable this extension.Expected Behavior
Nested lists should not have 4 space indent.
How to Reproduce the Issue
Export the following org file.
Example Org File
Generated Markdown File or Error
Ox-Hugo Debug Information
Debug Info
The text was updated successfully, but these errors were encountered: