astro-org's uniorgParseOptions not getting passed to uniorg-parse
Closed this issue · 2 comments
I'm using astro-org to parse org files to render with Astrojs. Everything is working as I expect except for the uniorgParseOptions
not getting passed to the parser. This is my config for the astro-org integration:
import uniorgPlugins, { handlers } from './uniorg/index.js';
import rehypePlugins from './rehype/index.js';
export default {
uniorgParseOptions: {
useSubSuperscripts: '{}',
},
uniorgRehypeOptions: {
handlers,
},
uniorgPlugins,
rehypePlugins
};
The uniorgRehypeOptions
works as expected and the handlers are all executed, but the uniorgParseOptions
are not working.
Looking into the uniorg-parser and it's not apparent to me that the options are getting passed to the parser: https://github.com/rasendubi/uniorg/blob/master/packages/uniorg-parse/src/unified-org-parse.ts
Not sure if I ought to group these two together or make another issue, but I'm also not getting super/sub script parsing. Doing a little debugging and setting some breakpoints and it seems that the regex fails to find the proper values and returns null.