-
Notifications
You must be signed in to change notification settings - Fork 131
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
linebreaks question #72
Comments
|
resulting markdown. Each line seems to end with three spaces. which isnt in the org src.
resulting html. Notice the unwanted br tags.
|
debug: Debug information for
|
org-hugo-default-section-directory | "posts" |
org-hugo-use-code-for-kbd | t |
org-hugo-prefer-hyphen-in-tags | t |
org-hugo-allow-spaces-in-tags | t |
org-hugo-langs-no-descr-in-code-fences | nil |
org-hugo-auto-set-lastmod | nil |
org-hugo-front-matter-format | "toml" |
ox-hugo generates just the markdown. The markdown looks alright. Markdown to HTML conversion is done by Hugo. Is it possible that you have enabled the https://gohugo.io/readfiles/bfconfig/#blackfriday-extensions If not that, the theme could be the culprit; try changing the theme. If you can publish your site repo (on Gitlab for example), I can have a better look. But it doesn't look like an ox-hugo problem. |
thanks ill have a look at your suggestions, and report back. the way my blog is built it includes files from all over the place, so i havent got an easy way to publish a working version of my site repo. |
You can start small to help with such debugs.. Start the site repo with just the theme installed, with your Btw to test the above theory about
What do you get? |
hugo config | grep blackfriday |
I looked at the generated md again, and each line is terminated by two spaces. If I remove the two spaces at line endings from the md file, the br tags are removed from the output. This indicates the problem is in the conversion from org to md. |
Ah! That's a Markdown feature.
I add something like |
I confirm the bug! Working on it! I never saw it because of that hook. |
Add new variable org-hugo-delete-trailing-ws Related to #72
@jave Update to the latest on the master and let me know how it works for you now. Thanks for catching this issue. |
Kaushal Modi <notifications@github.com> writes:
@jave Update to the latest on the master and let me know how it works for you now. Thanks for catching this issue.
Thanks, it works!
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or mute the thread.
--
Joakim Verona
joakim@verona.se
|
I'm publishing using the academic theme. Every line break in the org text seems to become a br tag. This doesnt look nice, since the html will have a different line width
example:
why are here
there linebreaks here
here
The text was updated successfully, but these errors were encountered: