pngwn / MDsveX

A markdown preprocessor for Svelte.
https://mdsvex.pngwn.io
MIT License
2.27k stars 96 forks source link

Loosen extension filtering to cover more possibilities #591

Closed vnphanquang closed 1 month ago

vnphanquang commented 4 months ago

Today, as of mdsvex@0.11.0, if .md.svelte is provided to the extension / extensions config, MDsveX will take it as .svelte, effectively making it process all .svelte files, which is not ideal.

This PR addresses this issue by making the mapping more relaxed (please see change).

The rationale for using .md.svelte is to take advantage of the default editor support for .svelte files, while still marking them as markdown-related.


If this issue has come up before and the proposed change is not the direction MDsveX wants to take, I apologize and will respect decisions made by code owner.

Thank you

changeset-bot[bot] commented 4 months ago

🦋 Changeset detected

Latest commit: c930db93450a7d5626c313e00949d94d25c0ea86

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package | Name | Type | | ------ | ----- | | mdsvex | Patch |

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR