rasendubi / uniorg

An accurate Org-mode parser for JavaScript/TypeScript
https://oleksii.shmalko.com/uniorg
GNU General Public License v3.0
256 stars 24 forks source link

Some question about functionalities ? #82

Closed reyman closed 1 year ago

reyman commented 1 year ago

Hi,

I'm happy to found an org parser that publish directly to html with astro !

I'm using a lot org-mode with org-babel and noweb for literate programming.

When you say this is work-in-progress in the Readme, what happen during parsing of such Literate Programming files ?

Do you think it will be possible to define different path/website from a single org-roam base, for example using :

Do you think uniorg parser works with the fabulous org-transclusion package ?

Thanks !

rasendubi commented 1 year ago

Hey

Literate programming: org-babel parsing works. It will export the source code. You can test this in playground.

Tags and filtering: that should be possible. org-astro allows you to import org files as Astro components (and access their metadata) and it's up to you how you filter and map it to paths. (As an example, here is a filtering by directory and #+DRAFT: keyword.)

dynamic blocks: dynamic blocks parsing currently is not implemented (it is parsed as begin + content + end keywords). For exporting this basically means that content is exported as is. So as long as your org file has up-to-date block value, it should be exported correctly.

If there is interest in parsing dynamic blocks properly (e.g., to update their value from js), I can guide on how to implement this (or can implement it when I have more time).

org-transclusion: org-transclusion is not supported (and likely won't be supported in the core uniorg), but it can be implemented as a plugin.