Skip to content

.org file extension support for org-mode syntax #6844

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

Closed
4www opened this issue Jul 19, 2023 · 5 comments
Closed

.org file extension support for org-mode syntax #6844

4www opened this issue Jul 19, 2023 · 5 comments
Labels
pinned type: feature code contributing to the implementation of a feature and/or user facing functionality

Comments

@4www
Copy link

4www commented Jul 19, 2023

org-mode documents, like markdown, have an accessible and powerful syntax, to write plain text and export to other formats, such as HTML.

decap-cms, supports editing formats such as JSON and markdown, and I wonder what could be a path to integrate support of an other content file type.

about org-mode

Although, built in emacs lisp, and built-into emacs, org mode documents and syntax is supported in many other editors and projects, and gives access to many new features on "just plain text" (and their HTML exported version).

It seems there are various active projects for parsing org files in the javascript npm ecosystem:

Additionally:

Is your feature request related to a problem? Please describe.

This is not a problem, and considered an enhancement, for supporting org document syntax in decap-cms.

User of org mode and its syntax, in IDEs and text editors, are already probably satisfied with their editing and publishing setup.

In order to onboard non IDE users, through the interface of decap-cms, it would be nice to offer access to edit org documents in the background (and have these changes saved to the git repository).

Describe the solution you'd like

Like currently in decap-cms, for .json, .md, .toml, .yml etc. files, it would be nice to accept .org files and their syntax (maye .txt files too, with either markdown front matter and content, org plain text, org mode content).

Add the possibility to edit the content of org documents, and like markdown's front-matter, add specific keys to an org document.

Maybe add support for org-insert-structure-template in the text content, like the "text editor widgets" registration.

Describe alternatives you've considered

I am not sure of any alternative, but continue "not using a git based CMS", if the objective is to use org document syntax.

As in the context of using .org documents to generate HTML sites, it could be possible to also use markdown files in the content folder (maybe with a separation of concern with .org and .md files, as well as .json files; and have org mode first export to markdown, or pandoc convert the markdown to org-mode or vice-versa)

Uniorg can transform (uni)org syntax trees to rehype markdown.

Additional context

Currently working on a static site generator, that uses org-mode and emacs to convert content .org and .txt files into HTML websites. It mainly provides a default project structure and documentation to how to use these tools.

There are also other static site projects, such as webloarg using org syntax; jekyll also can support org syntax (and is used by default for github pages).

Additionally github, gitlab and other git providers support org text documents for the readme displayed on repositories.

Also a long time user of decap/netlify-cms, I imagine the combination of org documents, git and git based decap-cms, as very interesting.

I am not sure if that is possible, and I'm looking forward to exploring how that could be achieved.

If there any pointers to which part of the code should be looked, I'll gladly look at them.

Cheers!

@4www 4www added the type: feature code contributing to the implementation of a feature and/or user facing functionality label Jul 19, 2023
@mmkal
Copy link
Collaborator

mmkal commented Jul 20, 2023

Would be covered by #6205

@martinjagodic
Copy link
Member

@4www @mmkal this is now released in 3.0.3. Can you test and confirm that it works?

@mmkal
Copy link
Collaborator

mmkal commented Nov 15, 2023

@martinjagodic I haven't tested (or heard of) org-mode but I think this should be closed given the feature to support custom formats is now in. If there's a problem with a particular format it's a bug, I can likely help if someone raises one so feel free to tag me if it comes up.

@martinjagodic
Copy link
Member

Great, thanks. Closing.

@4www
Copy link
Author

4www commented Nov 15, 2023

Sorry, haven't had the opportunity to test it. Will try to do that soon, and will post a feedback here if that's alright. Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
pinned type: feature code contributing to the implementation of a feature and/or user facing functionality
Projects
None yet
Development

No branches or pull requests

3 participants