The following snippets:
Parses it as:
{
"type": "org-data",
"contentsBegin": 0,
"contentsEnd": 16,
"children": [
{
"type": "paragraph",
"affiliated": {},
"contentsBegin": 0,
"contentsEnd": 16,
"children": [
{
"type": "link",
"format": "bracket",
"linkType": "file",
"rawLink": "../index.org",
"path": "../index.org",
"children": []
}
]
}
]
}
And returns the following html:
<p><a href="../index.org">../index.org</a></p>
It's my understanding uniorg-rehype is meant to mimic ox-html somewhat, and internal links to org file should resolve to the corresponding html file. I'm currently getting around this via a transformer https://github.com/venikx/venikx.com/blob/main/src/lib/plugins.ts but ideally this should be handled by uniorg-rehype if it wishes to mimic the behavior of ox-html. Another options is to create a rehype plugin that translates all .org links to `.html'.
The following snippets:
Parses it as:
{ "type": "org-data", "contentsBegin": 0, "contentsEnd": 16, "children": [ { "type": "paragraph", "affiliated": {}, "contentsBegin": 0, "contentsEnd": 16, "children": [ { "type": "link", "format": "bracket", "linkType": "file", "rawLink": "../index.org", "path": "../index.org", "children": [] } ] } ] }And returns the following html:
It's my understanding
uniorg-rehypeis meant to mimicox-htmlsomewhat, and internal links to org file should resolve to the corresponding html file. I'm currently getting around this via a transformer https://github.com/venikx/venikx.com/blob/main/src/lib/plugins.ts but ideally this should be handled byuniorg-rehypeif it wishes to mimic the behavior ofox-html. Another options is to create arehypeplugin that translates all.orglinks to `.html'.