You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/src/pages/developing/using-qmarkdown.md
+5-7Lines changed: 5 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -16,7 +16,7 @@ The `prismjs` package is used for language highlighting. When Prism is installed
16
16
17
17
## Global Properties
18
18
19
-
QMarkdown has the ability to set some global properties via the `useQMarkdownGlobalProps` function.
19
+
QMarkdown has the ability to set global properties via the `useQMarkdownGlobalProps` function.
20
20
21
21
To set it up site wide, put it into a boot file. The function takes an object containing the **camelCase** naming of the props for QMarkdown.
22
22
@@ -29,20 +29,18 @@ import { useQMarkdownGlobalProps } from '@quasar/quasar-ui-qmarkdown'
29
29
30
30
// defaults for QMarkdown
31
31
useQMarkdownGlobalProps({
32
-
noAbbreviation:true,
33
-
noBlockquote:true
32
+
noLineNumbers:true,
33
+
lineNumberAlt:'$'
34
34
})
35
35
```
36
36
37
-
Essentially, the above code makes it so that QMarkdown will no longer render `abbreviations` or `block quotes`.
38
-
39
37
::: warning
40
38
The keys are not validated in any way, so make sure to adhere to the proper type, for that property, to avoid issues.
41
39
:::
42
40
43
41
## Global Plugins
44
42
45
-
As well, a new property, `plugins`, has been added to replace the `extend` property. In the case of using it in the globalproperties, you can do something like this in a boot file:
43
+
As well, the property, `plugins`, has been added to enhance QMarkdown with `markdown-it` plugins. You can do something like this in a boot file:
0 commit comments