Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork 5.8k
Added capability to add css class and id to images + links + refactoring#820
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Uh oh!
There was an error while loading. Please reload this page.
Changes from all commits
fa780d0eb102631a312a6e8abb5d073afddbea0ce5File filter
Filter by extension
Conversations
Uh oh!
There was an error while loading. Please reload this page.
Jump to
Uh oh!
There was an error while loading. Please reload this page.
Diff view
Diff view
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Uh oh!
There was an error while loading. Please reload this page.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Uh oh!
There was an error while loading. Please reload this page.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,10 @@ | ||
| import Prism from 'prismjs' | ||
| // See https://github.com/PrismJS/prism/pull/1367 | ||
| import 'prismjs/components/prism-markup-templating' | ||
| export const highlightCodeCompiler = ({ renderer }) => renderer.code = function (code, lang = '') { | ||
| const langOrMarkup = Prism.languages[lang] || Prism.languages.markup | ||
| const text = Prism.highlight(code.replace(/@DOCSIFY_QM@/g, '`'), langOrMarkup) | ||
| return `<pre v-pre data-lang="${lang}"><code class="lang-${lang}">${text}</code></pre>` | ||
| } |
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If this works for anchors too, then it feels as if this documentation should be in a section that covers both.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I supporse it works for anchors too. Havn't testes it. This pr wasnt with anchors in mind. If it works, Feel free to update the docs