-
Notifications
You must be signed in to change notification settings - Fork 4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to pass options? #80
Comments
@mvsoom - Sorry to hear you are having difficulty. Your configuration appears to be accurate and should result in hrefs resolving to the site root. There are some issues with Astro v5 depending on your configuration which may be the cause although if your content lives in Unfortunately, its unclear from your description how you are detecting that the hrefs are not transforming correctly so there isn't much to go on to determine where any potential problem might be occuring.
Thank you! |
Thanks for your patient answer! I upgraded the plugin to 0.18.1, and astro to latest, and it all works now.
```
marnix@hp:~/pro/website$ npm list --depth=0
[email protected] /home/marnix/pro/website
├── @types/[email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
└── [email protected]
```
…On Thu, Jan 2, 2025 at 1:30 AM techfg ***@***.***> wrote:
@mvsoom <https://github.com/mvsoom> -
Sorry to hear you are having difficulty. Your configuration appears to be
accurate and should result in hrefs resolving to the site root.
Unfortunately, its unclear from your description how you are detecting
that the hrefs are not transforming correctly so there isn't much to go on
to determine where any potential problem might be occuring.
1. Please update to the latest version v0.18.1 - While this should not
make any difference from v0.17.3, this will ensure you have the latest
version
2. Please provide specific details on what you are seeing that leads
you to believe things are not working as expected
3. Please provide a repro via stackblitz <https://stackblitz.com/> (or
similar) that demonstrates the issue
Thank you!
—
Reply to this email directly, view it on GitHub
<#80 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AKJ35C3QMD6U6PBXV26IQFL2ISCDLAVCNFSM6AAAAABULFOJEGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDKNRXGE4TSMRXHE>
.
You are receiving this because you were mentioned.Message ID:
<vernak2539/astro-rehype-relative-markdown-links/issues/80/2567199279@
github.com>
|
Thanks for the update @mvsoom and glad to hear it is working. Assuming you were already on Astro v5 (and just updated to latest of v5), the underlying issue you were having is likely due to issues within Astro itself which was causing content collections to not be regenerated properly which means the plugin wasn't being re-executed and/or not at all depending on how you were building/running things. There's no way to know for sure, this is just speculation. For anyone else that might be having issues with Astro v5, make sure you are running There are a few issues filed in Astro that should help solve the underlying problems.
|
Using version: 0.17.3.
I am trying to set the base path to
/
such that the Markdown content insrc/content/vault
all just map tomysite.com/[...slug]
instead ofmysite.com/vault/[...slug]
. Per my understanding this can be achieved by just settingcollectionBase: false
. But I can't seem to get the plugin to read my options, even when passing invalid names and values for theOptions
type.Here is my
astro.config.mjs
file:What am I doing wrong? I even tried changing the plugin code directly, but it does not seem to do anything. FYI I am a JS newbie.
The text was updated successfully, but these errors were encountered: