jgleitz / markdown-it-kbd Goto Github PK
View Code? Open in Web Editor NEWmarkdown-it plugin for keystrokes. Renders [[x]] as <kbd>x</kbd>
License: MIT License
markdown-it plugin for keystrokes. Renders [[x]] as <kbd>x</kbd>
License: MIT License
At the moment, “
[[
” and “]]
” are not allowed within keystroke tags, because I can't think of a way to handle this that would make sense in all scenarios. If you think you know how it should be done, please file an issue!
What about escaping? So that would be [[\]\]]]
and [[\[\[]]
respectively. Not sure how one would implement this, though.
I've started using your extension for live previewing of my mkdocs-based documentation. It's awesome, thank you!
I bumped into a small issue with kbd. The pymdown-extensions syntax is ++Ctrl+Esc++, while yours is [[Ctrl+Esc]].
I didn't find any other syntaxes online regarding kbd, so I can't say which one is better.
But currently I can either preview in vscode, OR have the correct results in mkdocs.
Would it be possible to either agree in a common syntax for this, or to support both of them?
I also filed a similar issue in pymdown-extensions: facelessuser/pymdown-extensions#1517
I'm trying to fork your code to add attributes to the kbd tag (classes or data-attr). However I'm very green in my markdown-it plugin writing and am having trouble. I'm wondering if you know of how I could do like
[[x CLASSNAME]]
which would render
<kbd class="CLASSNAME">x</kbd>
I'd potentially want to allow multiple attributes but I figure this is an easy example to start.
This issue provides visibility into Renovate updates and their statuses. Learn more
These updates are awaiting their schedule. Click on a checkbox to get an update now.
These updates are pending. To force PRs open, click the checkbox below.
These updates have all been created already. Click a checkbox below to force a retry/rebase of any.
master
branch failed. 🚨I recommend you give this issue a high priority, so other packages depending on you could benefit from your bug fixes and new features.
You can find below the list of errors reported by semantic-release. Each one of them has to be resolved in order to automatically publish your package. I’m sure you can resolve this 💪.
Errors are usually caused by a misconfiguration or an authentication problem. With each error reported below you will find explanation and guidance to help you to resolve it.
Once all the errors are resolved, semantic-release will release your package the next time you push a commit to the master
branch. You can also manually restart the failed CI job that runs semantic-release.
If you are not sure how to resolve this, here is some links that can help you:
If those don’t help, or if this issue is reporting something you think isn’t right, you can always ask the humans behind semantic-release.
An npm token must be created and set in the NPM_TOKEN
environment variable on your CI environment.
Please make sure to create an npm token and to set it in the NPM_TOKEN
environment variable on your CI environment. The token must allow to publish to the registry https://registry.npmjs.org/
.
Good luck with your project ✨
Your semantic-release bot 📦🚀
There is an error with this repository's Renovate configuration that needs to be fixed. As a precaution, Renovate will stop PRs until it is resolved.
Error type: undefined. Note: this is a nested preset so please contact the preset author if you are unable to fix it yourself.
According to the spec (HTML5 kbd spec), kbd
elements are nested to represent keycaps as in:
<p>To make George eat an apple, press <kbd><kbd>Shift</kbd>+<kbd>F3</kbd></kbd></p>
but this does not work:
To make George eat an apple, press [[[[Shift]]+[[F3]]]]
results in:
<p>To make George eat an apple, press [<kbd>[Shift</kbd>+<kbd>F3</kbd>]]</p>
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.