PoiScript / orgize

A Rust library for parsing org-mode files.
https://poiscript.github.io/orgize/
MIT License
277 stars 34 forks source link

Support for org-entities (special symbols) #44

Closed lyderichti59 closed 7 months ago

lyderichti59 commented 3 years ago

Hi,

I use Firn, a static site generator, that depends on Orgize. I want to use org-mode's special symbols in my org files, and produce the expected HTML ( with non breaking spaces and narrow no-break spaces for the moment, but I may need many other special symbols too).

When I use the live demo, And input this : Hello\nbsp{}world I get this : {"type":"document","children":[{"type":"section","children":[{"type":"paragraph","children":[{"type":"text","value":"Hello\\nbsp{}world"}]}]}]}

Special symbols are parsed as plain text in the generated json.

Do you think that a support for org-entities is doable, or should it be done directly in the client code ?

PoiScript commented 7 months ago

org entity support is introduced in orgize v0.10.0-alpha.3.