remark-obsidian icon indicating copy to clipboard operation
remark-obsidian copied to clipboard

custom base url

Open aitorllj93 opened this issue 1 year ago • 3 comments

Is there any way to do it? Currently using on Astro

aitorllj93 avatar Dec 19 '23 00:12 aitorllj93

Hello @aitorllj93, thanks for your issue.

Can you be more specific about your use case?

johackim avatar Dec 19 '23 11:12 johackim

@johackim I'm using the plugin to render my Obsidian notes with Astro.

using the following Astro config (internally supports unified)

    markdown: {
      remarkPlugins: [remarkObsidian],
      remarkRehype: {
        allowDangerousHtml: true,
      },
    },

With this config, my notes obsidian links resolve to "/slug".

I wish they could resolve to "/knowledge-base/slug" or "/en/knowledge-base/slug" or "http://my-knowledge-base.org/slug" or whatever

aitorllj93 avatar Dec 19 '23 11:12 aitorllj93

Also, out of topic, I would like to know if there's a way to access to the reference links parsed by the module

aitorllj93 avatar Dec 19 '23 14:12 aitorllj93