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

[BUG] equation reference is not rendered properly

Open roiholtzman opened this issue 3 years ago • 3 comments

I am using org-ref to reference equation. This puts the text eqref:eq:1 in the text. The problem is that in the html formatting of the notes, the proper equation number is not showing, but the same text is showing eqref:eq:1.

This is an example for what I see in the html view: Screen Shot 2022-01-07 at 18 49 27

roiholtzman avatar Jan 07 '22 16:01 roiholtzman

Equation references made with org-ref are not (afaik) parsed by uniorg, so sadly we can't do anything with them at the moment. You can try opening an issue request there!

tefkah avatar Jan 10 '22 17:01 tefkah

uniorg-parse takes an options object that allows to add more link types to be parsed:

import { defaultOptions } from 'uniorg-parse/lib/parse-options';

unified()
  .use(uniorgParse, {
    linkTypes: [...defaultOptions.linkTypes, 'eqref'],
  })

EDIT: it's actually in the default set, so it should be parsed

rasendubi avatar Jan 11 '22 19:01 rasendubi

Ha okay then that is on me! I'll have a look

tefkah avatar Jan 12 '22 09:01 tefkah