org-mode support #2746

Closed
opened 2025-11-02 04:46:33 -06:00 by GiteaMirror · 7 comments
Owner

Originally created by @Iced-Sun on GitHub (Jan 13, 2019).

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.

Originally created by @Iced-Sun on GitHub (Jan 13, 2019). It seems to me that goorgeous may be dead. There is a [PR for hugo](https://github.com/gohugoio/hugo/pull/5545) which introduces an alternative implementation ```go-org```. Here is a [demo page](https://niklasfasching.github.io/go-org/go-org-vs-goorgeous) shows the html output of goorgeous (left side) and go-org (right side). #5430, #3122 should receive immediate [fixes](https://niklasfasching.github.io/go-org/#misc.org) if go-org is adopted. Regards.
GiteaMirror added the issue/confirmedtype/enhancement labels 2025-11-02 04:46:33 -06:00
Author
Owner

@lunny commented on GitHub (Jan 16, 2019):

wait for that PR merged. :)

@lunny commented on GitHub (Jan 16, 2019): wait for that PR merged. :)
Author
Owner

@michael-k commented on GitHub (Jun 8, 2019):

PR has been merged in commit fad183c4ae

@michael-k commented on GitHub (Jun 8, 2019): PR has been merged in commit https://github.com/gohugoio/hugo/commit/fad183c4ae55069be9246e64ab1c8b2f43d08d06
Author
Owner

@stale[bot] commented on GitHub (Aug 7, 2019):

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.

@stale[bot] commented on GitHub (Aug 7, 2019): 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.
Author
Owner

@Ekleog commented on GitHub (Sep 9, 2019):

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.

goorgeous, in addition to the bug described by #3122, is also not generating a table of contents, which go-org does. (I am also not sure whether go-org does provide syntax highlighting, as their screenshot does it but not their demo, so… meh)

@Ekleog commented on GitHub (Sep 9, 2019): 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. `goorgeous`, in addition to the bug described by #3122, is also not generating a table of contents, which go-org does. (I am also not sure whether go-org does provide syntax highlighting, as their screenshot does it but not their demo, so… meh)
Author
Owner

@niklasfasching commented on GitHub (Sep 11, 2019):

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

@niklasfasching commented on GitHub (Sep 11, 2019): there's a hook for syntax highlighting but go-org itself doesn't bundle anything - for the github pages examples I'm using [chroma](https://github.com/niklasfasching/go-org/blob/a143b04826aadb6d080e2788e71a44526fcdd960/main.go#L49-L59). If no one is looking into this i can take a look next week. [This](https://github.com/gohugoio/hugo/blob/master/helpers/content.go#L752-L771) is how hugo uses go-org and the most basic usage would be ```go 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](https://github.com/niklasfasching/go-org/blob/a143b04826aadb6d080e2788e71a44526fcdd960/main.go#L48-L59)
Author
Owner

@niklasfasching commented on GitHub (Sep 28, 2019):

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.

@niklasfasching commented on GitHub (Sep 28, 2019): 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.
Author
Owner

@Iced-Sun commented on GitHub (Jan 11, 2020):

Per #8560

@Iced-Sun commented on GitHub (Jan 11, 2020): Per #8560
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#2746