How could I help to add support for .org posts?March 28, 2018 at 8:04am
Yes, I'm one of the converts now 😄
Mainly thinking about support for footnotes and embedded React components/code blocks
March 28, 2018 at 8:22am
For foonotes, should not be a problem, should be handled by the markdown transformation.
For embedded react component, it's already possible! Here is how to do (https://github.com/phenomic/phenomic/tree/master/examples/react-app-markdown-with-custom-components (tell me if that's not clear enough with the code itself)
For code block, I will have to make a last tweak so we choose with phenomic config what languages we want (as for now it "works" but break as soon as it found a specific language (which mean generic "code" is ok, but "sass code" for example will break). I have to finish a thing (wip, 99%) so we can pass config to plugins/presets (like babel config) in order to arrange the situation!
It's the org-mode files used in emacs - super handy for writing and organizing stuff in general. Basic support has been added to Visual Studio Code as well recently, I think - at least for section folding and such.
Here's an overview:
Emacs can export org-mode to markdown, so there's a workaround, but I like to edit the files when they still end in .org as the section folding behavior is retained in the editor. I think it would be useful if some basic parsing could be hacked on top, it has good support for code blocks:
Oh I see! In short it's another file format right? If so, we could just add a plugin like for markdown and asciidoc. It should be easy to take a look to markdown transformer and copy it to support .org files. Take a look to this https://github.com/phenomic/phenomic/tree/master/packages/plugin-transform-markdown and tell me what you think :)
Adding any kind of transformation is pretty easy in fact. For example you can check json transformer (which is basically doing nothing special beside respecting phenomic transform api) https://github.com/phenomic/phenomic/blob/4cb9661cfa0841ec6ddd0a03839c92fa9990f98e/packages/plugin-transform-json/src/index.js
March 29, 2018 at 10:59am