-
-
Notifications
You must be signed in to change notification settings - Fork 5.6k
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
org-mode support #5710
Comments
wait for that PR merged. :) |
PR has been merged in commit gohugoio/hugo@fad183c |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs during the next 2 weeks. Thank you for your contributions. |
At the time of writing, the Gitea org mode parser cannot handle lower case org-mode structure blocks, which breaks display of org files in the web interface. Should be fixed when issue go-gitea/gitea#5710 is resolved. As a workaround, simply make sure the structure blocks are upper case (which they used to be before org-mode 9.2).
Not sure whether the stale bot is still threatening closing as it appears to have removed the stale label since the reviewed/confirmed tag was put, but this is still an issue.
|
there's a hook for syntax highlighting but go-org itself doesn't bundle anything - for the github pages examples I'm using chroma. If no one is looking into this i can take a look next week. This is how hugo uses go-org and the most basic usage would be config := org.New()
writer := org.NewHTMLWriter()
html, err := config.Parse(reader, path).Write(writer) to add syntax highlighting you can probably pretty much copy this highlight function |
The development setup seems quite heavy and I have a shitty old laptop - I'm happy to help if you run into any problems but won't take a stab at adding support myself, sorry. |
Per #8560 |
It seems to me that goorgeous may be dead. There is a PR for hugo which introduces an alternative implementation
go-org
. Here is a demo page shows the html output of goorgeous (left side) and go-org (right side).#5430, #3122 should receive immediate fixes if go-org is adopted.
Regards.
The text was updated successfully, but these errors were encountered: