org-roam-ui icon indicating copy to clipboard operation
org-roam-ui copied to clipboard

[BUG] Underscore always becomes underline

Open jason--liu opened this issue 2 years ago • 8 comments

Describe the bug On the latest org-roam-ui branch, in org-roam-ui, underline becomes subscript. Even if I add the following line in the file

#+OPTIONS: ^:nil 

But, if I export to a html file, the above setting is working and underline is underline not subscript.

To Reproduce It's 100% reproducible. It's the same when you open any file.

Expected behavior underline is underline, do not become subscript.

Screenshots image

What browser were you using? Chrome

Thanks for your help

jason--liu avatar Aug 29 '22 12:08 jason--liu

@rasendubi do you know if this is a uniorg issue or an org-roam-ui issue?

tefkah avatar Sep 20 '22 13:09 tefkah

It's a uniorg one. There are two ways to enable this behavior in org-mode: via a variable or via options. Neither way is currently supported by uniorg

rasendubi avatar Sep 20 '22 22:09 rasendubi

Is there any workaround method that can be fixed? Thank you. @rasendubi

jason--liu avatar Sep 21 '22 02:09 jason--liu

Not really. The easiest way to fix this is to add support for org-use-sub-superscripts in uniorg. If someone is interested in implementing this, I can provide some guidance

rasendubi avatar Sep 21 '22 11:09 rasendubi

@rasendubi, This ticket is quite old, but could you share the guide?

seokbeomKim avatar Aug 15 '23 05:08 seokbeomKim

oh, org-use-sub-superscripts is already implemented now, so the only thing left is to pass correct configuration from org-roam-ui

See https://github.com/rasendubi/uniorg/blob/11ef10311b05ebd4d0dea80a7f4c51d4aa82edcf/packages/uniorg-parse/src/parse-options.ts#L14 for config documentation

rasendubi avatar Aug 15 '23 07:08 rasendubi

@rasendubi Thank you for sharing! @tefkah I cannot find any documentation to configure uniorg's ParseOption. Aren't there any configuration interfaces for this yet in org-roam-ui?

seokbeomKim avatar Aug 16 '23 04:08 seokbeomKim

Any updates on this?

sgript avatar Feb 06 '24 13:02 sgript