@md-plugins/quasar-app-extension-q-press 0.1.0-beta.2 → 0.1.0-beta.21
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +20 -15
- package/dist/index.js +41 -7
- package/dist/install.js +7 -5
- package/dist/q-press-globals.d.ts +49 -0
- package/dist/templates/init/src/_q-press/api/components/MarkdownCode.json +2 -2
- package/dist/templates/init/src/_q-press/api/components/MarkdownCodepen.json +6 -9
- package/dist/templates/init/src/_q-press/api/components/MarkdownExample.json +27 -2
- package/dist/templates/init/src/_q-press/components/MarkdownApi.vue +129 -84
- package/dist/templates/init/src/_q-press/components/MarkdownCardLink.vue +1 -1
- package/dist/templates/init/src/_q-press/components/MarkdownCardTitle.vue +1 -1
- package/dist/templates/init/src/_q-press/components/MarkdownCode.vue +71 -3
- package/dist/templates/init/src/_q-press/components/MarkdownCodepen.vue +316 -59
- package/dist/templates/init/src/_q-press/components/MarkdownCopyButton.vue +1 -1
- package/dist/templates/init/src/_q-press/components/MarkdownExample.vue +54 -19
- package/dist/templates/init/src/_q-press/components/MarkdownLink.vue +5 -5
- package/dist/templates/init/src/_q-press/components/MarkdownMermaid.vue +123 -0
- package/dist/templates/init/src/_q-press/components/MarkdownTree.vue +2 -2
- package/dist/templates/init/src/_q-press/components/markdown-utils.ts +27 -3
- package/dist/templates/init/src/_q-press/css/app.scss +38 -26
- package/dist/templates/init/src/_q-press/css/code-theme.scss +634 -0
- package/dist/templates/init/src/_q-press/css/themes/default.scss +1 -1
- package/dist/templates/init/src/_q-press/css/themes/evergreen.scss +69 -0
- package/dist/templates/init/src/_q-press/css/themes/mystic.scss +1 -1
- package/dist/templates/init/src/_q-press/css/themes/newspaper.scss +1 -1
- package/dist/templates/init/src/_q-press/css/themes/sunrise.scss +1 -1
- package/dist/templates/init/src/_q-press/css/themes/tawny.scss +1 -1
- package/dist/templates/init/src/_q-press/layouts/MarkdownDrawerSidebar.vue +1 -1
- package/dist/templates/init/src/_q-press/layouts/MarkdownDrawerToc.vue +1 -1
- package/dist/templates/init/src/_q-press/layouts/MarkdownHeader.vue +1 -1
- package/dist/templates/init/src/_q-press/layouts/MarkdownLayout.vue +2 -2
- package/dist/templates/init/src/_q-press/layouts/MarkdownPage.vue +4 -3
- package/dist/templates/init/src/_q-press/layouts/MarkdownSearch.vue +1 -1
- package/dist/templates/init/src/_q-press/stores/markdown.ts +1 -2
- package/dist/templates/init/src/components/LandingPage/LandingPage.vue +15 -1
- package/dist/templates/init/src/components/QPressThemeGallery.vue +336 -0
- package/dist/templates/init/src/components/page-parts/releases/GitHubReleases.vue +121 -0
- package/dist/templates/init/src/components/page-parts/releases/PackageReleases.vue +191 -0
- package/dist/templates/init/src/components/page-parts/releases/md-table-parser.ts +52 -0
- package/dist/templates/init/src/components/page-parts/releases/sanitize.ts +132 -0
- package/dist/templates/init/src/markdown/__elements.md +8 -8
- package/dist/templates/init/src/markdown/__elements2.md +4 -4
- package/dist/templates/init/src/markdown/faq/best-practices.md +27 -0
- package/dist/templates/init/src/markdown/faq/general.md +27 -0
- package/dist/templates/init/src/markdown/faq/troubleshooting.md +27 -0
- package/dist/templates/init/src/markdown/getting-started/introduction.md +7 -5
- package/dist/templates/init/src/markdown/md-plugins/blockquote/overview.md +3 -1
- package/dist/templates/init/src/markdown/md-plugins/codeblocks/advanced.md +19 -15
- package/dist/templates/init/src/markdown/md-plugins/codeblocks/overview.md +45 -8
- package/dist/templates/init/src/markdown/md-plugins/containers/overview.md +3 -1
- package/dist/templates/init/src/markdown/md-plugins/frontmatter/overview.md +3 -1
- package/dist/templates/init/src/markdown/md-plugins/headers/overview.md +3 -1
- package/dist/templates/init/src/markdown/md-plugins/image/overview.md +3 -1
- package/dist/templates/init/src/markdown/md-plugins/imports/overview.md +3 -1
- package/dist/templates/init/src/markdown/md-plugins/inline-code/overview.md +3 -1
- package/dist/templates/init/src/markdown/md-plugins/link/advanced.md +2 -2
- package/dist/templates/init/src/markdown/md-plugins/link/overview.md +6 -4
- package/dist/templates/init/src/markdown/md-plugins/mermaid/advanced.md +69 -0
- package/dist/templates/init/src/markdown/md-plugins/mermaid/overview.md +73 -0
- package/dist/templates/init/src/markdown/md-plugins/shared/overview.md +28 -13
- package/dist/templates/init/src/markdown/md-plugins/table/overview.md +3 -1
- package/dist/templates/init/src/markdown/md-plugins/title/overview.md +3 -1
- package/dist/templates/init/src/markdown/other/contact.md +37 -0
- package/dist/templates/init/src/markdown/other/contributing/bugs-and-feature-requests.md +33 -0
- package/dist/templates/init/src/markdown/other/contributing/call-to-action.md +25 -0
- package/dist/templates/init/src/markdown/other/contributing/documentation.md +31 -0
- package/dist/templates/init/src/markdown/other/contributing/overview.md +41 -0
- package/dist/templates/init/src/markdown/other/contributing/packages.md +28 -0
- package/dist/templates/init/src/markdown/other/contributing/sponsor.md +23 -0
- package/dist/templates/init/src/markdown/other/faq.md +179 -0
- package/dist/templates/init/src/markdown/other/releases.md +11 -0
- package/dist/templates/init/src/markdown/other/upgrade-guide.md +165 -0
- package/dist/templates/init/src/markdown/quasar-app-extensions/qpress/advanced.md +11 -3
- package/dist/templates/init/src/markdown/quasar-app-extensions/qpress/components.md +25 -29
- package/dist/templates/init/src/markdown/quasar-app-extensions/qpress/overview.md +20 -20
- package/dist/templates/init/src/markdown/quasar-app-extensions/qpress/site-config.md +17 -3
- package/dist/templates/init/src/markdown/quasar-app-extensions/qpress/themes.md +101 -9
- package/dist/templates/init/src/markdown/quasar-app-extensions/vite-md-plugin-app-ext/advanced.md +158 -0
- package/dist/templates/init/src/markdown/quasar-app-extensions/vite-md-plugin-app-ext/overview.md +1 -1
- package/dist/templates/init/src/markdown/vite-plugins/vite-examples-plugin/advanced.md +8 -3
- package/dist/templates/init/src/markdown/vite-plugins/vite-examples-plugin/overview.md +19 -5
- package/dist/templates/init/src/markdown/vite-plugins/vite-md-plugin/advanced.md +84 -54
- package/dist/templates/init/src/markdown/vite-plugins/vite-md-plugin/overview.md +19 -3
- package/dist/templates/init/src/siteConfig/index.ts +52 -23
- package/dist/templates/update/src/_q-press/api/components/MarkdownCode.json +2 -2
- package/dist/templates/update/src/_q-press/api/components/MarkdownCodepen.json +6 -9
- package/dist/templates/update/src/_q-press/api/components/MarkdownExample.json +27 -2
- package/dist/templates/update/src/_q-press/components/MarkdownApi.vue +129 -84
- package/dist/templates/update/src/_q-press/components/MarkdownCardLink.vue +1 -1
- package/dist/templates/update/src/_q-press/components/MarkdownCardTitle.vue +1 -1
- package/dist/templates/update/src/_q-press/components/MarkdownCode.vue +71 -3
- package/dist/templates/update/src/_q-press/components/MarkdownCodepen.vue +316 -59
- package/dist/templates/update/src/_q-press/components/MarkdownCopyButton.vue +1 -1
- package/dist/templates/update/src/_q-press/components/MarkdownExample.vue +54 -19
- package/dist/templates/update/src/_q-press/components/MarkdownLink.vue +5 -5
- package/dist/templates/update/src/_q-press/components/MarkdownMermaid.vue +123 -0
- package/dist/templates/update/src/_q-press/components/MarkdownTree.vue +2 -2
- package/dist/templates/update/src/_q-press/components/markdown-utils.ts +27 -3
- package/dist/templates/update/src/_q-press/css/app.scss +38 -26
- package/dist/templates/update/src/_q-press/css/code-theme.scss +634 -0
- package/dist/templates/update/src/_q-press/css/themes/default.scss +1 -1
- package/dist/templates/update/src/_q-press/css/themes/evergreen.scss +69 -0
- package/dist/templates/update/src/_q-press/css/themes/mystic.scss +1 -1
- package/dist/templates/update/src/_q-press/css/themes/newspaper.scss +1 -1
- package/dist/templates/update/src/_q-press/css/themes/sunrise.scss +1 -1
- package/dist/templates/update/src/_q-press/css/themes/tawny.scss +1 -1
- package/dist/templates/update/src/_q-press/layouts/MarkdownDrawerSidebar.vue +1 -1
- package/dist/templates/update/src/_q-press/layouts/MarkdownDrawerToc.vue +1 -1
- package/dist/templates/update/src/_q-press/layouts/MarkdownHeader.vue +1 -1
- package/dist/templates/update/src/_q-press/layouts/MarkdownLayout.vue +2 -2
- package/dist/templates/update/src/_q-press/layouts/MarkdownPage.vue +4 -3
- package/dist/templates/update/src/_q-press/layouts/MarkdownSearch.vue +1 -1
- package/dist/templates/update/src/_q-press/stores/markdown.ts +1 -2
- package/package.json +22 -21
- package/src/index.ts +80 -11
- package/src/install.ts +10 -9
- package/src/q-press-globals.d.ts +49 -0
- package/src/templates/init/src/_q-press/api/components/MarkdownCode.json +2 -2
- package/src/templates/init/src/_q-press/api/components/MarkdownCodepen.json +6 -9
- package/src/templates/init/src/_q-press/api/components/MarkdownExample.json +27 -2
- package/src/templates/init/src/_q-press/components/MarkdownApi.vue +129 -84
- package/src/templates/init/src/_q-press/components/MarkdownCardLink.vue +1 -1
- package/src/templates/init/src/_q-press/components/MarkdownCardTitle.vue +1 -1
- package/src/templates/init/src/_q-press/components/MarkdownCode.vue +71 -3
- package/src/templates/init/src/_q-press/components/MarkdownCodepen.vue +316 -59
- package/src/templates/init/src/_q-press/components/MarkdownCopyButton.vue +1 -1
- package/src/templates/init/src/_q-press/components/MarkdownExample.vue +54 -19
- package/src/templates/init/src/_q-press/components/MarkdownLink.vue +5 -5
- package/src/templates/init/src/_q-press/components/MarkdownMermaid.vue +123 -0
- package/src/templates/init/src/_q-press/components/MarkdownTree.vue +2 -2
- package/src/templates/init/src/_q-press/components/markdown-utils.ts +27 -3
- package/src/templates/init/src/_q-press/css/app.scss +38 -26
- package/src/templates/init/src/_q-press/css/code-theme.scss +634 -0
- package/src/templates/init/src/_q-press/css/themes/default.scss +1 -1
- package/src/templates/init/src/_q-press/css/themes/evergreen.scss +69 -0
- package/src/templates/init/src/_q-press/css/themes/mystic.scss +1 -1
- package/src/templates/init/src/_q-press/css/themes/newspaper.scss +1 -1
- package/src/templates/init/src/_q-press/css/themes/sunrise.scss +1 -1
- package/src/templates/init/src/_q-press/css/themes/tawny.scss +1 -1
- package/src/templates/init/src/_q-press/layouts/MarkdownDrawerSidebar.vue +1 -1
- package/src/templates/init/src/_q-press/layouts/MarkdownDrawerToc.vue +1 -1
- package/src/templates/init/src/_q-press/layouts/MarkdownHeader.vue +1 -1
- package/src/templates/init/src/_q-press/layouts/MarkdownLayout.vue +2 -2
- package/src/templates/init/src/_q-press/layouts/MarkdownPage.vue +4 -3
- package/src/templates/init/src/_q-press/layouts/MarkdownSearch.vue +1 -1
- package/src/templates/init/src/_q-press/stores/markdown.ts +1 -2
- package/src/templates/init/src/components/LandingPage/LandingPage.vue +15 -1
- package/src/templates/init/src/components/QPressThemeGallery.vue +336 -0
- package/src/templates/init/src/components/page-parts/releases/GitHubReleases.vue +121 -0
- package/src/templates/init/src/components/page-parts/releases/PackageReleases.vue +191 -0
- package/src/templates/init/src/components/page-parts/releases/md-table-parser.ts +52 -0
- package/src/templates/init/src/components/page-parts/releases/sanitize.ts +132 -0
- package/src/templates/init/src/markdown/__elements.md +8 -8
- package/src/templates/init/src/markdown/__elements2.md +4 -4
- package/src/templates/init/src/markdown/faq/best-practices.md +27 -0
- package/src/templates/init/src/markdown/faq/general.md +27 -0
- package/src/templates/init/src/markdown/faq/troubleshooting.md +27 -0
- package/src/templates/init/src/markdown/getting-started/introduction.md +7 -5
- package/src/templates/init/src/markdown/md-plugins/blockquote/overview.md +3 -1
- package/src/templates/init/src/markdown/md-plugins/codeblocks/advanced.md +19 -15
- package/src/templates/init/src/markdown/md-plugins/codeblocks/overview.md +45 -8
- package/src/templates/init/src/markdown/md-plugins/containers/overview.md +3 -1
- package/src/templates/init/src/markdown/md-plugins/frontmatter/overview.md +3 -1
- package/src/templates/init/src/markdown/md-plugins/headers/overview.md +3 -1
- package/src/templates/init/src/markdown/md-plugins/image/overview.md +3 -1
- package/src/templates/init/src/markdown/md-plugins/imports/overview.md +3 -1
- package/src/templates/init/src/markdown/md-plugins/inline-code/overview.md +3 -1
- package/src/templates/init/src/markdown/md-plugins/link/advanced.md +2 -2
- package/src/templates/init/src/markdown/md-plugins/link/overview.md +6 -4
- package/src/templates/init/src/markdown/md-plugins/mermaid/advanced.md +69 -0
- package/src/templates/init/src/markdown/md-plugins/mermaid/overview.md +73 -0
- package/src/templates/init/src/markdown/md-plugins/shared/overview.md +28 -13
- package/src/templates/init/src/markdown/md-plugins/table/overview.md +3 -1
- package/src/templates/init/src/markdown/md-plugins/title/overview.md +3 -1
- package/src/templates/init/src/markdown/other/contact.md +37 -0
- package/src/templates/init/src/markdown/other/contributing/bugs-and-feature-requests.md +33 -0
- package/src/templates/init/src/markdown/other/contributing/call-to-action.md +25 -0
- package/src/templates/init/src/markdown/other/contributing/documentation.md +31 -0
- package/src/templates/init/src/markdown/other/contributing/overview.md +41 -0
- package/src/templates/init/src/markdown/other/contributing/packages.md +28 -0
- package/src/templates/init/src/markdown/other/contributing/sponsor.md +23 -0
- package/src/templates/init/src/markdown/other/faq.md +179 -0
- package/src/templates/init/src/markdown/other/releases.md +11 -0
- package/src/templates/init/src/markdown/other/upgrade-guide.md +165 -0
- package/src/templates/init/src/markdown/quasar-app-extensions/qpress/advanced.md +11 -3
- package/src/templates/init/src/markdown/quasar-app-extensions/qpress/components.md +25 -29
- package/src/templates/init/src/markdown/quasar-app-extensions/qpress/overview.md +20 -20
- package/src/templates/init/src/markdown/quasar-app-extensions/qpress/site-config.md +17 -3
- package/src/templates/init/src/markdown/quasar-app-extensions/qpress/themes.md +101 -9
- package/src/templates/init/src/markdown/quasar-app-extensions/vite-md-plugin-app-ext/advanced.md +158 -0
- package/src/templates/init/src/markdown/quasar-app-extensions/vite-md-plugin-app-ext/overview.md +1 -1
- package/src/templates/init/src/markdown/vite-plugins/vite-examples-plugin/advanced.md +8 -3
- package/src/templates/init/src/markdown/vite-plugins/vite-examples-plugin/overview.md +19 -5
- package/src/templates/init/src/markdown/vite-plugins/vite-md-plugin/advanced.md +84 -54
- package/src/templates/init/src/markdown/vite-plugins/vite-md-plugin/overview.md +19 -3
- package/src/templates/init/src/siteConfig/index.ts +52 -23
- package/src/templates/update/src/_q-press/api/components/MarkdownCode.json +2 -2
- package/src/templates/update/src/_q-press/api/components/MarkdownCodepen.json +6 -9
- package/src/templates/update/src/_q-press/api/components/MarkdownExample.json +27 -2
- package/src/templates/update/src/_q-press/components/MarkdownApi.vue +129 -84
- package/src/templates/update/src/_q-press/components/MarkdownCardLink.vue +1 -1
- package/src/templates/update/src/_q-press/components/MarkdownCardTitle.vue +1 -1
- package/src/templates/update/src/_q-press/components/MarkdownCode.vue +71 -3
- package/src/templates/update/src/_q-press/components/MarkdownCodepen.vue +316 -59
- package/src/templates/update/src/_q-press/components/MarkdownCopyButton.vue +1 -1
- package/src/templates/update/src/_q-press/components/MarkdownExample.vue +54 -19
- package/src/templates/update/src/_q-press/components/MarkdownLink.vue +5 -5
- package/src/templates/update/src/_q-press/components/MarkdownMermaid.vue +123 -0
- package/src/templates/update/src/_q-press/components/MarkdownTree.vue +2 -2
- package/src/templates/update/src/_q-press/components/markdown-utils.ts +27 -3
- package/src/templates/update/src/_q-press/css/app.scss +38 -26
- package/src/templates/update/src/_q-press/css/code-theme.scss +634 -0
- package/src/templates/update/src/_q-press/css/themes/default.scss +1 -1
- package/src/templates/update/src/_q-press/css/themes/evergreen.scss +69 -0
- package/src/templates/update/src/_q-press/css/themes/mystic.scss +1 -1
- package/src/templates/update/src/_q-press/css/themes/newspaper.scss +1 -1
- package/src/templates/update/src/_q-press/css/themes/sunrise.scss +1 -1
- package/src/templates/update/src/_q-press/css/themes/tawny.scss +1 -1
- package/src/templates/update/src/_q-press/layouts/MarkdownDrawerSidebar.vue +1 -1
- package/src/templates/update/src/_q-press/layouts/MarkdownDrawerToc.vue +1 -1
- package/src/templates/update/src/_q-press/layouts/MarkdownHeader.vue +1 -1
- package/src/templates/update/src/_q-press/layouts/MarkdownLayout.vue +2 -2
- package/src/templates/update/src/_q-press/layouts/MarkdownPage.vue +4 -3
- package/src/templates/update/src/_q-press/layouts/MarkdownSearch.vue +1 -1
- package/src/templates/update/src/_q-press/stores/markdown.ts +1 -2
- package/tsconfig.json +1 -1
- package/dist/templates/init/src/_q-press/api/components/MarkdownCodePrism.json +0 -29
- package/dist/templates/init/src/_q-press/components/MarkdownCodePrism.ts +0 -36
- package/dist/templates/init/src/_q-press/css/prism-theme.scss +0 -298
- package/dist/templates/init/src/markdown/guides/contributing.md +0 -101
- package/dist/templates/init/src/markdown/guides/faq.md +0 -115
- package/dist/templates/init/src/markdown/guides/release-notes.md +0 -0
- package/dist/templates/init/src/markdown/guides/style-guide.md +0 -0
- package/dist/templates/init/src/markdown/guides/upgrade-guide.md +0 -92
- package/dist/templates/init/src/markdown/other/release-notes.md +0 -8
- package/dist/templates/init/src/q-press.globals.d.ts +0 -36
- package/dist/templates/update/src/_q-press/api/components/MarkdownCodePrism.json +0 -29
- package/dist/templates/update/src/_q-press/components/MarkdownCodePrism.ts +0 -36
- package/dist/templates/update/src/_q-press/css/prism-theme.scss +0 -298
- package/dist/templates/update/src/q-press.globals.d.ts +0 -36
- package/src/templates/init/src/_q-press/api/components/MarkdownCodePrism.json +0 -29
- package/src/templates/init/src/_q-press/components/MarkdownCodePrism.ts +0 -36
- package/src/templates/init/src/_q-press/css/prism-theme.scss +0 -298
- package/src/templates/init/src/markdown/guides/contributing.md +0 -101
- package/src/templates/init/src/markdown/guides/faq.md +0 -115
- package/src/templates/init/src/markdown/guides/release-notes.md +0 -0
- package/src/templates/init/src/markdown/guides/style-guide.md +0 -0
- package/src/templates/init/src/markdown/guides/upgrade-guide.md +0 -92
- package/src/templates/init/src/markdown/other/release-notes.md +0 -8
- package/src/templates/init/src/q-press.globals.d.ts +0 -36
- package/src/templates/update/src/_q-press/api/components/MarkdownCodePrism.json +0 -29
- package/src/templates/update/src/_q-press/components/MarkdownCodePrism.ts +0 -36
- package/src/templates/update/src/_q-press/css/prism-theme.scss +0 -298
- package/src/templates/update/src/q-press.globals.d.ts +0 -36
|
@@ -1,115 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
title: Frequently Asked Questions
|
|
3
|
-
desc: Common questions and answers about Markdown Plugins.
|
|
4
|
-
---
|
|
5
|
-
|
|
6
|
-
## General Questions
|
|
7
|
-
|
|
8
|
-
### What are Markdown Plugins?
|
|
9
|
-
|
|
10
|
-
Markdown Plugins are tools that extend the functionality of Markdown, allowing you to add custom syntax, enhanced components, and custom styling to your Markdown documents. They help improve the accessibility, styling, and interactivity of your content.
|
|
11
|
-
|
|
12
|
-
### How do I install Markdown Plugins?
|
|
13
|
-
|
|
14
|
-
You can install Markdown Plugins using npm, yarn, or pnpm. Here is an example using npm:
|
|
15
|
-
|
|
16
|
-
```bash
|
|
17
|
-
npm install @md-plugins/vite-md-plugin
|
|
18
|
-
```
|
|
19
|
-
|
|
20
|
-
Refer to the **Installation** section of each plugin's documentation for detailed instructions.
|
|
21
|
-
|
|
22
|
-
### How do I configure Markdown Plugins?
|
|
23
|
-
|
|
24
|
-
Configuration varies depending on the plugin. Generally, you will need to import the plugin and use it with your Markdown processor (e.g., MarkdownIt). Refer to the **Configuration** section of each plugin's documentation for detailed instructions.
|
|
25
|
-
|
|
26
|
-
## Plugin-Specific Questions
|
|
27
|
-
|
|
28
|
-
### How do I add custom classes to images?
|
|
29
|
-
|
|
30
|
-
You can use the `image` plugin to add custom classes to images. Here is an example configuration:
|
|
31
|
-
|
|
32
|
-
```typescript
|
|
33
|
-
import MarkdownIt from 'markdown-it'
|
|
34
|
-
import { imagePlugin } from '@md-plugins/md-plugin-image'
|
|
35
|
-
|
|
36
|
-
const md = new MarkdownIt()
|
|
37
|
-
|
|
38
|
-
md.use(imagePlugin, {
|
|
39
|
-
imageClass: 'custom-image-class',
|
|
40
|
-
})
|
|
41
|
-
```
|
|
42
|
-
|
|
43
|
-
### How do I extract and process frontmatter content?
|
|
44
|
-
|
|
45
|
-
You can use the `frontmatter` plugin to extract and process frontmatter content from your Markdown files. Here is an example configuration:
|
|
46
|
-
|
|
47
|
-
```typescript
|
|
48
|
-
import MarkdownIt from 'markdown-it'
|
|
49
|
-
import { frontmatterPlugin } from '@md-plugins/md-plugin-frontmatter'
|
|
50
|
-
|
|
51
|
-
const md = new MarkdownIt()
|
|
52
|
-
|
|
53
|
-
md.use(frontmatterPlugin, {
|
|
54
|
-
grayMatterOptions: {
|
|
55
|
-
excerpt: true,
|
|
56
|
-
excerpt_separator: '<!-- more -->',
|
|
57
|
-
},
|
|
58
|
-
renderExcerpt: true,
|
|
59
|
-
})
|
|
60
|
-
|
|
61
|
-
const env: MarkdownItEnv = {}
|
|
62
|
-
const html = md.render(code, env)
|
|
63
|
-
|
|
64
|
-
console.log(env.frontmatter)
|
|
65
|
-
```
|
|
66
|
-
|
|
67
|
-
### How do I enhance code block rendering?
|
|
68
|
-
|
|
69
|
-
You can use the `codeblocks` plugin to enhance code block rendering with syntax highlighting, tabs, and more. Here is an example configuration:
|
|
70
|
-
|
|
71
|
-
```typescript
|
|
72
|
-
import MarkdownIt from 'markdown-it'
|
|
73
|
-
import { codeblocksPlugin } from '@md-plugins/md-plugin-codeblocks'
|
|
74
|
-
|
|
75
|
-
const md = new MarkdownIt()
|
|
76
|
-
|
|
77
|
-
md.use(codeblocksPlugin, {
|
|
78
|
-
defaultLang: 'javascript',
|
|
79
|
-
containerComponent: 'MarkdownPrerender',
|
|
80
|
-
copyButtonComponent: 'MarkdownCopyButton',
|
|
81
|
-
})
|
|
82
|
-
```
|
|
83
|
-
|
|
84
|
-
### How do I convert Markdown links into Vue components?
|
|
85
|
-
|
|
86
|
-
You can use the `link` plugin to convert Markdown links into Vue components for SPA-friendly routing. Here is an example configuration:
|
|
87
|
-
|
|
88
|
-
```typescript
|
|
89
|
-
import MarkdownIt from 'markdown-it'
|
|
90
|
-
import { linkPlugin } from '@md-plugins/md-plugin-link'
|
|
91
|
-
|
|
92
|
-
const md = new MarkdownIt()
|
|
93
|
-
|
|
94
|
-
md.use(linkPlugin, {
|
|
95
|
-
linkTag: 'RouterLink', // or 'router-link'
|
|
96
|
-
linkToKeyword: 'to',
|
|
97
|
-
pageScript: 'import { RouterLink } from "vue-router"',
|
|
98
|
-
})
|
|
99
|
-
```
|
|
100
|
-
|
|
101
|
-
## Troubleshooting
|
|
102
|
-
|
|
103
|
-
### My Markdown content is not rendering correctly. What should I do?
|
|
104
|
-
|
|
105
|
-
Ensure that you have correctly installed and configured the plugins. Check the console for any error messages and refer to the documentation for troubleshooting tips. If the issue persists, reach out to our support team for assistance.
|
|
106
|
-
|
|
107
|
-
### How do I report a bug or request a feature?
|
|
108
|
-
|
|
109
|
-
You can report bugs or request features by opening an issue on the GitHub repository of the respective plugin. Provide as much detail as possible to help us understand and address your request.
|
|
110
|
-
|
|
111
|
-
## Support
|
|
112
|
-
|
|
113
|
-
If you have any other questions or need further assistance, please refer to the Support page or contact our support team.
|
|
114
|
-
|
|
115
|
-
Happy coding!
|
|
File without changes
|
|
File without changes
|
|
@@ -1,92 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
title: Upgrade Guide
|
|
3
|
-
desc: Upgrade MD-Plugins and Q-Press to the 0.1.0 beta.
|
|
4
|
-
related:
|
|
5
|
-
- quasar-app-extensions/qpress/overview
|
|
6
|
-
- quasar-app-extensions/vite-md-plugin-app-ext/overview
|
|
7
|
-
- vite-plugins/vite-md-plugin/overview
|
|
8
|
-
---
|
|
9
|
-
|
|
10
|
-
The `0.1.0` beta line moves MD-Plugins and Q-Press to the Quasar CLI Vite 3 beta toolchain. It is the right version to use when your Quasar application is being upgraded to `@quasar/app-vite` `>=3.0.0-beta.14`.
|
|
11
|
-
|
|
12
|
-
::: warning
|
|
13
|
-
Q-Press and the Quasar app extensions now target Quasar Vite projects using `@quasar/app-vite` `>=3.0.0-beta.14`. They are not intended for Webpack projects or JavaScript-only Quasar projects.
|
|
14
|
-
:::
|
|
15
|
-
|
|
16
|
-
## Before You Upgrade
|
|
17
|
-
|
|
18
|
-
- Make sure your app is already on a Quasar Vite setup.
|
|
19
|
-
- Upgrade the app to `@quasar/app-vite` `>=3.0.0-beta.14`.
|
|
20
|
-
- Use TypeScript in the consuming Quasar project.
|
|
21
|
-
- Import `defineConfig` in `quasar.config.ts` directly from `@quasar/app-vite`.
|
|
22
|
-
- Use `/// <reference types="@quasar/app-vite/client" />` in `src/env.d.ts`.
|
|
23
|
-
- Commit or stash local changes before invoking Q-Press, because the update flow can overwrite files in `src/.q-press`.
|
|
24
|
-
|
|
25
|
-
## Update Packages
|
|
26
|
-
|
|
27
|
-
For Q-Press projects, update the app extension package and then invoke it:
|
|
28
|
-
|
|
29
|
-
```bash
|
|
30
|
-
pnpm up @md-plugins/quasar-app-extension-q-press@beta
|
|
31
|
-
quasar ext invoke @md-plugins/q-press
|
|
32
|
-
```
|
|
33
|
-
|
|
34
|
-
When prompted, choose `Overwrite All` if you want the generated Q-Press files to match the beta templates.
|
|
35
|
-
|
|
36
|
-
For direct Vite plugin usage, update the packages you consume:
|
|
37
|
-
|
|
38
|
-
```bash
|
|
39
|
-
pnpm up @md-plugins/vite-md-plugin@beta @md-plugins/vite-examples-plugin@beta
|
|
40
|
-
```
|
|
41
|
-
|
|
42
|
-
## File Name Check
|
|
43
|
-
|
|
44
|
-
Q-Press installs and updates this type shim:
|
|
45
|
-
|
|
46
|
-
```text
|
|
47
|
-
src/q-press.globals.d.ts
|
|
48
|
-
```
|
|
49
|
-
|
|
50
|
-
If your project still references `src/q-press.global.d.ts`, rename the reference to the plural `globals` filename.
|
|
51
|
-
|
|
52
|
-
## Environment Variable Changes
|
|
53
|
-
|
|
54
|
-
Quasar CLI Vite 3 exposes runtime flags through `import.meta.env`. If you copied older Q-Press internals into your own code, update them:
|
|
55
|
-
|
|
56
|
-
| Old pattern | New pattern |
|
|
57
|
-
| ----------------------------- | ---------------------------------------- |
|
|
58
|
-
| `process.env.CLIENT` | `import.meta.env.QUASAR_CLIENT` |
|
|
59
|
-
| `process.env.SERVER` | `import.meta.env.QUASAR_SERVER` |
|
|
60
|
-
| `process.env.DEV` | `import.meta.env.QUASAR_DEV` |
|
|
61
|
-
| `process.env.PROD` | `import.meta.env.QUASAR_PROD` |
|
|
62
|
-
| `process.env.VUE_ROUTER_MODE` | `import.meta.env.QUASAR_VUE_ROUTER_MODE` |
|
|
63
|
-
| `process.env.VUE_ROUTER_BASE` | `import.meta.env.QUASAR_VUE_ROUTER_BASE` |
|
|
64
|
-
|
|
65
|
-
Q-Press also uses `QCLI_*` values for Quasar CLI provided build-time values, such as search index and filesystem paths.
|
|
66
|
-
|
|
67
|
-
## Vite Plugin Configuration
|
|
68
|
-
|
|
69
|
-
`viteMdPlugin` should be configured with an options object:
|
|
70
|
-
|
|
71
|
-
```ts
|
|
72
|
-
import { viteMdPlugin, type MenuItem } from '@md-plugins/vite-md-plugin'
|
|
73
|
-
|
|
74
|
-
vitePlugins: [
|
|
75
|
-
viteMdPlugin({
|
|
76
|
-
path: ctx.appPaths.srcDir + '/markdown',
|
|
77
|
-
menu: sidebar as MenuItem[],
|
|
78
|
-
}),
|
|
79
|
-
]
|
|
80
|
-
```
|
|
81
|
-
|
|
82
|
-
## Verify The Upgrade
|
|
83
|
-
|
|
84
|
-
Run these checks in the consuming app:
|
|
85
|
-
|
|
86
|
-
```bash
|
|
87
|
-
pnpm install
|
|
88
|
-
quasar prepare
|
|
89
|
-
quasar build
|
|
90
|
-
```
|
|
91
|
-
|
|
92
|
-
If you use linting or formatting, run those checks after invoking Q-Press so any regenerated files are included.
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
title: Release Notes
|
|
3
|
-
desc: The changelog for MD-Plugins packages.
|
|
4
|
-
---
|
|
5
|
-
|
|
6
|
-
Release notes (with changelog) for MD-Plugins packages are available on [GitHub Releases](https://github.com/md-plugins/md-plugins/releases).
|
|
7
|
-
|
|
8
|
-
If you are moving from the alpha packages to the `0.1.0` beta line, read the [Upgrade Guide](/guides/upgrade-guide) before updating a project.
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
declare module '*.md'
|
|
2
|
-
|
|
3
|
-
// Define types for headers
|
|
4
|
-
interface TocMenuItem {
|
|
5
|
-
id: string
|
|
6
|
-
level: number
|
|
7
|
-
title: string
|
|
8
|
-
link?: string
|
|
9
|
-
deep?: boolean
|
|
10
|
-
sub?: boolean
|
|
11
|
-
onClick?: () => void
|
|
12
|
-
children?: TocMenuItem[]
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
// Define types for Markdown modules
|
|
16
|
-
interface MarkdownModule {
|
|
17
|
-
title?: string
|
|
18
|
-
headers?: TocMenuItem[]
|
|
19
|
-
frontmatter?: Record<string, unknown>
|
|
20
|
-
filename?: string
|
|
21
|
-
render: (..._args: unknown[]) => unknown
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
// Define types for menu items
|
|
25
|
-
interface MenuItem {
|
|
26
|
-
name: string
|
|
27
|
-
path?: string
|
|
28
|
-
icon?: string
|
|
29
|
-
iconColor?: string
|
|
30
|
-
rightIcon?: string
|
|
31
|
-
rightIconColor?: string
|
|
32
|
-
badge?: string
|
|
33
|
-
children?: MenuItem[] | undefined
|
|
34
|
-
external?: boolean
|
|
35
|
-
expanded?: boolean
|
|
36
|
-
}
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"type": "component",
|
|
3
|
-
"meta": {
|
|
4
|
-
"docsUrl": "https://path-to-your-docs/markdown-code-prism"
|
|
5
|
-
},
|
|
6
|
-
"props": {
|
|
7
|
-
"code": {
|
|
8
|
-
"type": "String",
|
|
9
|
-
"desc": "The code to display with syntax highlighting",
|
|
10
|
-
"examples": [
|
|
11
|
-
"'const a = 1;'",
|
|
12
|
-
"'<div>Hello World</div>'"
|
|
13
|
-
],
|
|
14
|
-
"required": true,
|
|
15
|
-
"category": "content"
|
|
16
|
-
},
|
|
17
|
-
"lang": {
|
|
18
|
-
"type": "String",
|
|
19
|
-
"desc": "Language of the code for syntax highlighting",
|
|
20
|
-
"examples": [
|
|
21
|
-
"'js'",
|
|
22
|
-
"'html'",
|
|
23
|
-
"'css'"
|
|
24
|
-
],
|
|
25
|
-
"required": true,
|
|
26
|
-
"category": "content"
|
|
27
|
-
}
|
|
28
|
-
}
|
|
29
|
-
}
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
import Prism from 'prismjs'
|
|
2
|
-
import { h, computed, defineComponent, type PropType } from 'vue'
|
|
3
|
-
|
|
4
|
-
export default defineComponent({
|
|
5
|
-
name: 'MarkdownCodePrism',
|
|
6
|
-
|
|
7
|
-
props: {
|
|
8
|
-
code: {
|
|
9
|
-
type: String as PropType<string>,
|
|
10
|
-
required: true,
|
|
11
|
-
},
|
|
12
|
-
lang: {
|
|
13
|
-
type: String as PropType<string>,
|
|
14
|
-
required: true,
|
|
15
|
-
},
|
|
16
|
-
},
|
|
17
|
-
|
|
18
|
-
setup(props) {
|
|
19
|
-
const html = computed(() => {
|
|
20
|
-
if (!props.code || !props.lang) {
|
|
21
|
-
return ''
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
return Prism.highlight(props.code, Prism.languages[props.lang] as Prism.Grammar, props.lang)
|
|
25
|
-
})
|
|
26
|
-
|
|
27
|
-
return () =>
|
|
28
|
-
h(
|
|
29
|
-
'pre',
|
|
30
|
-
{
|
|
31
|
-
class: `markdown-code language-${props.lang}`,
|
|
32
|
-
},
|
|
33
|
-
[h('code', { innerHTML: html.value })],
|
|
34
|
-
)
|
|
35
|
-
},
|
|
36
|
-
})
|
|
@@ -1,298 +0,0 @@
|
|
|
1
|
-
.markdown-code {
|
|
2
|
-
margin: 0;
|
|
3
|
-
position: relative;
|
|
4
|
-
overflow: auto;
|
|
5
|
-
border-radius: inherit;
|
|
6
|
-
|
|
7
|
-
code {
|
|
8
|
-
display: block;
|
|
9
|
-
padding: 16px;
|
|
10
|
-
width: fit-content;
|
|
11
|
-
min-width: 100%;
|
|
12
|
-
|
|
13
|
-
font-size: ($font-size - 2px);
|
|
14
|
-
font-family: Consolas, Monaco, 'Andale Mono', 'Ubuntu Mono', monospace;
|
|
15
|
-
line-height: 1.5em;
|
|
16
|
-
tab-size: 2;
|
|
17
|
-
text-align: left;
|
|
18
|
-
white-space: pre;
|
|
19
|
-
word-spacing: normal;
|
|
20
|
-
word-break: normal;
|
|
21
|
-
word-wrap: normal;
|
|
22
|
-
hyphens: none;
|
|
23
|
-
|
|
24
|
-
color: inherit;
|
|
25
|
-
background-color: inherit;
|
|
26
|
-
border-radius: inherit;
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
&--copying {
|
|
30
|
-
.c-lpref,
|
|
31
|
-
.c-line,
|
|
32
|
-
.token.deleted-sign,
|
|
33
|
-
.token.prefix {
|
|
34
|
-
display: none;
|
|
35
|
-
}
|
|
36
|
-
}
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
.c-line {
|
|
40
|
-
position: relative;
|
|
41
|
-
display: block;
|
|
42
|
-
width: 100%;
|
|
43
|
-
height: 0;
|
|
44
|
-
&:before {
|
|
45
|
-
content: ' ';
|
|
46
|
-
position: absolute;
|
|
47
|
-
pointer-events: none;
|
|
48
|
-
top: 1px;
|
|
49
|
-
left: -16px;
|
|
50
|
-
right: -16px;
|
|
51
|
-
height: 1.5em;
|
|
52
|
-
}
|
|
53
|
-
}
|
|
54
|
-
|
|
55
|
-
.c-lpref {
|
|
56
|
-
position: sticky;
|
|
57
|
-
pointer-events: none;
|
|
58
|
-
user-select: none;
|
|
59
|
-
left: 8px;
|
|
60
|
-
padding: 0 16px 0 8px;
|
|
61
|
-
margin: -16px 0 -16px -8px;
|
|
62
|
-
&:before {
|
|
63
|
-
border-right: 1px solid;
|
|
64
|
-
content: '';
|
|
65
|
-
position: absolute;
|
|
66
|
-
pointer-events: none;
|
|
67
|
-
top: -1px;
|
|
68
|
-
left: -8px;
|
|
69
|
-
right: 8px;
|
|
70
|
-
bottom: -2px;
|
|
71
|
-
z-index: -1;
|
|
72
|
-
height: 1.5em;
|
|
73
|
-
}
|
|
74
|
-
}
|
|
75
|
-
|
|
76
|
-
.line-add:before,
|
|
77
|
-
.token.inserted-sign:before {
|
|
78
|
-
background: rgba($positive, 0.4);
|
|
79
|
-
}
|
|
80
|
-
|
|
81
|
-
.token.deleted-sign,
|
|
82
|
-
.token.inserted-sign {
|
|
83
|
-
position: relative;
|
|
84
|
-
display: block;
|
|
85
|
-
width: 100%;
|
|
86
|
-
|
|
87
|
-
&:before {
|
|
88
|
-
content: '';
|
|
89
|
-
position: absolute;
|
|
90
|
-
pointer-events: none;
|
|
91
|
-
top: 0;
|
|
92
|
-
left: -16px;
|
|
93
|
-
right: -16px;
|
|
94
|
-
bottom: 0;
|
|
95
|
-
}
|
|
96
|
-
}
|
|
97
|
-
|
|
98
|
-
.token.prefix {
|
|
99
|
-
margin-right: 8px;
|
|
100
|
-
}
|
|
101
|
-
|
|
102
|
-
body.body--light {
|
|
103
|
-
.markdown-code {
|
|
104
|
-
color: $brand-light-codeblock-text;
|
|
105
|
-
background-color: $brand-light-codeblock-bg;
|
|
106
|
-
}
|
|
107
|
-
|
|
108
|
-
.line-highlight:before {
|
|
109
|
-
background: rgba($grey, 0.2);
|
|
110
|
-
}
|
|
111
|
-
.line-rem:before,
|
|
112
|
-
.token.deleted-sign:before {
|
|
113
|
-
background: rgba($negative, 0.2);
|
|
114
|
-
}
|
|
115
|
-
|
|
116
|
-
.c-lpref {
|
|
117
|
-
color: $brand-light-codeblock-text;
|
|
118
|
-
&:before {
|
|
119
|
-
border-right-color: $separator-color;
|
|
120
|
-
background: $brand-light-codeblock-bg;
|
|
121
|
-
}
|
|
122
|
-
}
|
|
123
|
-
|
|
124
|
-
.token.comment,
|
|
125
|
-
.token.block-comment,
|
|
126
|
-
.token.prolog,
|
|
127
|
-
.token.doctype,
|
|
128
|
-
.token.cdata {
|
|
129
|
-
color: #7d8b99;
|
|
130
|
-
}
|
|
131
|
-
|
|
132
|
-
.token {
|
|
133
|
-
&.punctuation {
|
|
134
|
-
color: #5f6364;
|
|
135
|
-
}
|
|
136
|
-
&.important {
|
|
137
|
-
font-weight: 400;
|
|
138
|
-
}
|
|
139
|
-
&.bold {
|
|
140
|
-
font-weight: 700;
|
|
141
|
-
}
|
|
142
|
-
&.italic {
|
|
143
|
-
font-style: italic;
|
|
144
|
-
}
|
|
145
|
-
&.entity {
|
|
146
|
-
cursor: help;
|
|
147
|
-
}
|
|
148
|
-
}
|
|
149
|
-
|
|
150
|
-
.token.property,
|
|
151
|
-
.token.tag,
|
|
152
|
-
.token.boolean,
|
|
153
|
-
.token.number,
|
|
154
|
-
.token.function-name,
|
|
155
|
-
.token.constant,
|
|
156
|
-
.token.symbol,
|
|
157
|
-
.token.deleted {
|
|
158
|
-
color: #c92c2c;
|
|
159
|
-
}
|
|
160
|
-
|
|
161
|
-
.token.selector,
|
|
162
|
-
.token.attr-name,
|
|
163
|
-
.token.string,
|
|
164
|
-
.token.char,
|
|
165
|
-
.token.function,
|
|
166
|
-
.token.builtin,
|
|
167
|
-
.token.inserted {
|
|
168
|
-
color: #2f9c0a;
|
|
169
|
-
}
|
|
170
|
-
|
|
171
|
-
.token.operator,
|
|
172
|
-
.token.entity,
|
|
173
|
-
.token.url,
|
|
174
|
-
.token.variable {
|
|
175
|
-
color: #da5a20;
|
|
176
|
-
}
|
|
177
|
-
|
|
178
|
-
.token.atrule,
|
|
179
|
-
.token.attr-value,
|
|
180
|
-
.token.keyword,
|
|
181
|
-
.token.class-name {
|
|
182
|
-
color: #1990b8;
|
|
183
|
-
}
|
|
184
|
-
|
|
185
|
-
.token.regex,
|
|
186
|
-
.token.important {
|
|
187
|
-
color: #e90;
|
|
188
|
-
}
|
|
189
|
-
|
|
190
|
-
.language-css .token.string,
|
|
191
|
-
.style .token.string {
|
|
192
|
-
color: #a67f59;
|
|
193
|
-
background: rgba(255, 255, 255, 0.5);
|
|
194
|
-
}
|
|
195
|
-
|
|
196
|
-
.namespace {
|
|
197
|
-
opacity: 0.7;
|
|
198
|
-
}
|
|
199
|
-
|
|
200
|
-
.token.tab:not(:empty):before,
|
|
201
|
-
.token.cr:before,
|
|
202
|
-
.token.lf:before {
|
|
203
|
-
color: #e0d7d1;
|
|
204
|
-
}
|
|
205
|
-
}
|
|
206
|
-
|
|
207
|
-
body.body--dark {
|
|
208
|
-
.markdown-code {
|
|
209
|
-
color: $brand-dark-codeblock-text;
|
|
210
|
-
background-color: $brand-dark-codeblock-bg;
|
|
211
|
-
}
|
|
212
|
-
|
|
213
|
-
.line-highlight:before {
|
|
214
|
-
background: rgba($grey-3, 0.2);
|
|
215
|
-
}
|
|
216
|
-
.line-rem:before,
|
|
217
|
-
.token.deleted-sign:before {
|
|
218
|
-
background: rgba($red, 0.3);
|
|
219
|
-
}
|
|
220
|
-
|
|
221
|
-
.c-lpref {
|
|
222
|
-
color: $brand-light-codeblock-text;
|
|
223
|
-
&:before {
|
|
224
|
-
border-right-color: $separator-dark-color;
|
|
225
|
-
background: $brand-dark-codeblock-bg;
|
|
226
|
-
}
|
|
227
|
-
}
|
|
228
|
-
|
|
229
|
-
.token.comment,
|
|
230
|
-
.token.prolog,
|
|
231
|
-
.token.doctype,
|
|
232
|
-
.token.cdata {
|
|
233
|
-
color: #d4d0ab;
|
|
234
|
-
}
|
|
235
|
-
|
|
236
|
-
.token.punctuation {
|
|
237
|
-
color: #fefefe;
|
|
238
|
-
}
|
|
239
|
-
|
|
240
|
-
.token.property,
|
|
241
|
-
.token.tag,
|
|
242
|
-
.token.constant,
|
|
243
|
-
.token.symbol,
|
|
244
|
-
.token.deleted {
|
|
245
|
-
color: #ffa07a;
|
|
246
|
-
}
|
|
247
|
-
|
|
248
|
-
.token.boolean,
|
|
249
|
-
.token.number {
|
|
250
|
-
color: #00e0e0;
|
|
251
|
-
}
|
|
252
|
-
|
|
253
|
-
.token.selector,
|
|
254
|
-
.token.attr-name,
|
|
255
|
-
.token.string,
|
|
256
|
-
.token.char,
|
|
257
|
-
.token.builtin,
|
|
258
|
-
.token.inserted {
|
|
259
|
-
color: #abe338;
|
|
260
|
-
}
|
|
261
|
-
|
|
262
|
-
.token.operator,
|
|
263
|
-
.token.entity,
|
|
264
|
-
.token.url,
|
|
265
|
-
.language-css .token.string,
|
|
266
|
-
.style .token.string,
|
|
267
|
-
.token.variable {
|
|
268
|
-
color: #00e0e0;
|
|
269
|
-
}
|
|
270
|
-
|
|
271
|
-
.token.atrule,
|
|
272
|
-
.token.attr-value,
|
|
273
|
-
.token.function {
|
|
274
|
-
color: #ffd700;
|
|
275
|
-
}
|
|
276
|
-
|
|
277
|
-
.token.keyword {
|
|
278
|
-
color: #00e0e0;
|
|
279
|
-
}
|
|
280
|
-
|
|
281
|
-
.token.regex,
|
|
282
|
-
.token.important {
|
|
283
|
-
color: #ffd700;
|
|
284
|
-
}
|
|
285
|
-
|
|
286
|
-
.token.important,
|
|
287
|
-
.token.bold {
|
|
288
|
-
font-weight: 700;
|
|
289
|
-
}
|
|
290
|
-
|
|
291
|
-
.token.italic {
|
|
292
|
-
font-style: italic;
|
|
293
|
-
}
|
|
294
|
-
|
|
295
|
-
.token.entity {
|
|
296
|
-
cursor: help;
|
|
297
|
-
}
|
|
298
|
-
}
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
declare module '*.md'
|
|
2
|
-
|
|
3
|
-
// Define types for headers
|
|
4
|
-
interface TocMenuItem {
|
|
5
|
-
id: string
|
|
6
|
-
level: number
|
|
7
|
-
title: string
|
|
8
|
-
link?: string
|
|
9
|
-
deep?: boolean
|
|
10
|
-
sub?: boolean
|
|
11
|
-
onClick?: () => void
|
|
12
|
-
children?: TocMenuItem[]
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
// Define types for Markdown modules
|
|
16
|
-
interface MarkdownModule {
|
|
17
|
-
title?: string
|
|
18
|
-
headers?: TocMenuItem[]
|
|
19
|
-
frontmatter?: Record<string, unknown>
|
|
20
|
-
filename?: string
|
|
21
|
-
render: (..._args: unknown[]) => unknown
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
// Define types for menu items
|
|
25
|
-
interface MenuItem {
|
|
26
|
-
name: string
|
|
27
|
-
path?: string
|
|
28
|
-
icon?: string
|
|
29
|
-
iconColor?: string
|
|
30
|
-
rightIcon?: string
|
|
31
|
-
rightIconColor?: string
|
|
32
|
-
badge?: string
|
|
33
|
-
children?: MenuItem[] | undefined
|
|
34
|
-
external?: boolean
|
|
35
|
-
expanded?: boolean
|
|
36
|
-
}
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"type": "component",
|
|
3
|
-
"meta": {
|
|
4
|
-
"docsUrl": "https://path-to-your-docs/markdown-code-prism"
|
|
5
|
-
},
|
|
6
|
-
"props": {
|
|
7
|
-
"code": {
|
|
8
|
-
"type": "String",
|
|
9
|
-
"desc": "The code to display with syntax highlighting",
|
|
10
|
-
"examples": [
|
|
11
|
-
"'const a = 1;'",
|
|
12
|
-
"'<div>Hello World</div>'"
|
|
13
|
-
],
|
|
14
|
-
"required": true,
|
|
15
|
-
"category": "content"
|
|
16
|
-
},
|
|
17
|
-
"lang": {
|
|
18
|
-
"type": "String",
|
|
19
|
-
"desc": "Language of the code for syntax highlighting",
|
|
20
|
-
"examples": [
|
|
21
|
-
"'js'",
|
|
22
|
-
"'html'",
|
|
23
|
-
"'css'"
|
|
24
|
-
],
|
|
25
|
-
"required": true,
|
|
26
|
-
"category": "content"
|
|
27
|
-
}
|
|
28
|
-
}
|
|
29
|
-
}
|