bypikod / markdown-it-github-alert Goto Github PK
View Code? Open in Web Editor NEWGitHub Markdown Admonition Syntax Plugin for Markdown It
Home Page: https://www.npmjs.com/package/markdown-it-github-alert
License: MIT License
GitHub Markdown Admonition Syntax Plugin for Markdown It
Home Page: https://www.npmjs.com/package/markdown-it-github-alert
License: MIT License
First thing first, fantastic idea to allow this GitHub behaviour in VS Code too (infact I thought it was odd vscode-github-markdown-preview wasn't allowing it yet (as I found out in your PR too).
Before having your extension running on my Code I had to write it with an extra empty line in order to avoid this mess
Now that I have it installed, a minor problem arised (and I bet it's just for me)
Here is what bugs me: my friendly empty line now stops the rendering
Works fine without an empty line
It might be useful to allows that empty line to still be rendered as in GitHub
e.g.:
> [!NOTE]
>
> This Works In Here
Note
This Works In Here
Hello, I'm using your plugin and it seems pretty cool so far, but i had an issue:
Due to how your plugin works, the icon of the alerts always seems to be black and it doesn't really fit my page:
I wanted to ask if you could add a way to easily modify the icon's colors by maybe adding a config passable to the plugin via the use
function of markdown-it (i think it's doable since you're using svgs)
A little example from matkdown-it-anchor in case you didn't get my explanation:
markdownIt({ html: true }).use(
markdownItAnchor,
{
permalink: true,
permalinkClass: 'anchor',
permalinkSymbol: '#'
}
)
I also noticed that not all warnings from GitHub are present in your lib, github currently supports
Note
Notes (supported by your plugin)
Tip
Tip (unsupported)
Important
Important (supported)
Warning
Warning (supported)
Caution
Caution (unsupported)
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.