curiouslychase / _goorgeous

[DEPRECATED] A go org syntax parser to html
MIT License
160 stars 28 forks source link

Support for symbols like ndash and mdash #46

Closed duckdodger closed 5 years ago

duckdodger commented 7 years ago

Org supports ndash -- and mdash --- which are exported properly to – and — respectively through HTML with– and —. It doesn't look like it's done in goorgeous, hence this issue. You can have a look at http://orgmode.org/worg/org-symbols.html as reference for all such special characters.

Thanks for this package, by the way! I love it. :)

priyadarshan commented 7 years ago

Yes, EnDash, --, and EmDash, --- are quite important in humanities publications and their sites.

Org via Emacs will render EmDash, ---,

It is only a question of years --- and certainly not centuries --- before its golden glint falls on the face of every nation.

thus:

<p>
It is only a question of years &#x2014; and certainly not centuries &#x2014; before its golden glint falls on the face of every nation.
</p>

EnDash, --,

The Supreme Court voted 5--4 to uphold the decision.

is rendered as

<p>
The Supreme Court voted 5&#x2013;4 to uphold the decision.
</p>

In summary:

EmDash: --- is rendered as &#x2014; EnDash: -- is rendered as &#x2013;

ghost commented 5 years ago

This is really necesary and basic

curiouslychase commented 5 years ago

I had a branch I was getting ready to PR into Hugo this week that fixed this, but it looks like @niklasfasching PR'ed a new org parser, so I'm closing all the issues here, deprecating and archiving goorgeous.