Prose Components
A list of Prose components currently implemented.
Here is a list of all the Prose components currently implemented.
To overwrite a prose component, create a component with the same name in your project components/content/ directory (ex: components/content/ProseA.vue)
ProseA
Code
[Link](/api/components/prose)ProseBlockquote
Code
> Block quoteProseCode
Code
```js [file.js]{4-6,7} meta-info=val export default () => { console.log('Code block') } ```Component properties will be:
{ code: "export default () => {\n console.log('Code block')\n}" language: "js" filename: "file.js" highlights: [4, 5, 6, 7] meta: "meta-info=val"}Check out the highlight options for more about the syntax highlighting.
If you want to use
] in the filename, you need to escape it with 2 backslashes: \\]. This is necessary since JS will automatically escape the backslash in a string so \] will be resolved as ] breaking our regex.ProseCodeInline
code inline.
Code
`code inline`.`const codeInline: string = 'highlighted code inline'`{lang="ts"}ProseH1
Code
# H1 HeadingProseH2
Code
## H2 HeadingProseH3
Code
### H3 HeadingProseH4
Code
#### H4 HeadingProseH5
Code
##### H5 HeadingProseH6
Code
###### H6 HeadingProseHr
Code
Divider under.---Divider above.ProseImg
Code
ProseUl
Code
- Just- An- Unordered- ListProseLi
Code
- List elementProseOl
Code
1. Foo2. Bar3. BazProseP
Code
Just a paragraph.ProseStrong
Code
**Just a strong paragraph.**ProseEm
Code
_Just an italic paragraph._ProseTable
Code
| Key | Type | Description || --- | --------- | ----------- || 1 | Wonderful | Table || 2 | Wonderful | Data || 3 | Wonderful | Website |ProseTbody
Included in ProseTable example.
ProseTd
Included in ProseTable example.
ProseTh
Included in ProseTable example.
ProseThead
Included in ProseTable example.
ProseTr
Included in ProseTable example.
