Closed aabounegm closed 4 years ago
Yeah, this sounds good.
Could you add a new option extensions
and leave the existing extension
as it is. We can add a deprecation warning and remove the extension
option in a future major.
Sounds good enough. I assume extensions
should take precedence if it exists and extension
would be ignored then?
Yeah, that sounds right. Only use extension
if extensions
isn't defined.
I have a project where I use MDsveX with Sapper for the documentation, and all the routes were created with the
.svx
extension. I also have some markdown (.md
) files in the project root for GitHub (such as README.md, CHANGELOG.md, and so on). I want to incorporate those in the docs, but the plugin only supports specifying one extension, so I am not able to import the.md
file from the.svx
one. It would be helpful if we can specify a list of extensions instead of just one extension. I realize that I could include it multiple times in the preprocess pipeline as such:but it becomes very tedious and suboptimal when more extensions are desired, aside from the repetition of the same configuration multiple times.
If you don't mind, I already started implementing this and can submit a pull request once you give me the green light.