danmaq / gatsby-remark-link-rewrite Goto Github PK
View Code? Open in Web Editor NEW๐ Plugin of gatsby-transformer-remark that can freely rewrite the link URL of Markdown.
License: MIT License
๐ Plugin of gatsby-transformer-remark that can freely rewrite the link URL of Markdown.
License: MIT License
While using this plugin i've ran across cases where it's required to include the full markdown filename and extension, namely when targeting specific sections inside the markdown file. I was wondering if it was possible to include an exclude option to the plugin's options and parse only items that are not present in such option.
Config wise it could be something like:
{
resolve: 'gatsby-transformer-remark',
options: {
plugins: [
{
resolve: 'gatsby-remark-link-rewrite',
options: {
pattern: /^(.*)$/,
replace: '$1',
exclude:[
// a list of urls
]
},
},
],
},
},
And implementation wise we could probably include a check here.
We would have to factor in a couple of items:
Let me know if you're ok with the idea.
Stay safe
I suspect this plugin might be useful for us, but I'm not sure without seeing some examples with explanations of what they do. Maybe add some simple examples to the main README.md file.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.