committed by
GitHub
parent
f3c4337268
commit
147592a8b8
@ -68,9 +68,7 @@
|
||||
content: '{}',
|
||||
},
|
||||
'image.json': {
|
||||
content: `{
|
||||
"required": "/assets/uploads/moby-dick.jpg"
|
||||
}`,
|
||||
content: `{}`,
|
||||
},
|
||||
'map.json': {
|
||||
content: '{}',
|
||||
@ -125,7 +123,71 @@
|
||||
dateString +
|
||||
'T00:00:00.000Z\n---\n# The post is number ' +
|
||||
i +
|
||||
'\n\nAnd this is yet another identical post body',
|
||||
`\n\n
|
||||
|
||||
# Awesome Editor!
|
||||
|
||||
It was _released as open source in 2022_ and is **_continually_** evolving to be the **best editor experience** available for static site generators.
|
||||
|
||||
## MDX
|
||||
|
||||
The output out this widget is \`mdx\`, a mixture of \`markdown\` and \`javascript components\`. See [MDX documentation](https://mdxjs.com/docs/).
|
||||
|
||||
\`\`\`yaml
|
||||
name: body
|
||||
label: Blog post content
|
||||
widget: markdown
|
||||
\`\`\`
|
||||
|
||||
\`\`\`js
|
||||
name: 'body',
|
||||
label: 'Blog post content',
|
||||
widget: 'markdown',
|
||||
\`\`\`
|
||||
|
||||
> See the table below for default options
|
||||
> More API information can be found in the document
|
||||
|
||||
| Name | Type | Default | Description |
|
||||
| ------------- | --------------------- | ------- | ----------------------------------------------------------------------------------------------------------------------------------------------------- |
|
||||
| default | string | \`''\` | _Optional_. The default value for the field. Accepts markdown content |
|
||||
| media_library | Media Library Options | \`{}\` | _Optional_. Media library settings to apply when a media library is opened by the current widget. See [Media Library Options](#media-library-options) |
|
||||
| media_folder | string | | _Optional_. Specifies the folder path where uploaded files should be saved, relative to the base of the repo |
|
||||
| public_folder | string | | _Optional_. Specifies the folder path where the files uploaded by the media library will be accessed, relative to the base of the built site |
|
||||
|
||||
### Media Library Options
|
||||
|
||||
| Name | Type | Default | Description |
|
||||
| -------------- | ---------------------- | ------- | ------------------------------------------------------------------------------------------------------------------------------------------------- |
|
||||
| allow_multiple | boolean | \`true\` | _Optional_. When set to \`false\`, prevents multiple selection for any media library extension, but must be supported by the extension in use |
|
||||
| config | string | \`{}\` | _Optional_. A configuration object that will be passed directly to the media library being used - available options are determined by the library |
|
||||
| choose_url | string<br />\\| boolean | \`true\` | _Optional_. When set to \`false\`, the "Insert from URL" button will be hidden
|
||||
|
||||
## Features
|
||||
|
||||
* CommonMark + GFM Specifications
|
||||
* Live \`Preview\`
|
||||
* Auto Indent
|
||||
* Syntax Highlight
|
||||
1. Rich Editor
|
||||
2. Preview
|
||||
|
||||
## Formatting
|
||||
|
||||
<font style={{ color: 'red', backgroundColor: 'black' }}>Colored Text</font>
|
||||
|
||||
<p align="center">Centered Text</p>
|
||||
|
||||
**Bold**, *Italic*, ***both***, <u>Underlined</u>
|
||||
|
||||
~~Strikethrough~~, <sub>subscript</sub>, <sup>superscript</sup>
|
||||
|
||||
## Support
|
||||
|
||||
> * Supports remark plugins
|
||||
> * Supports wrappers
|
||||
> 1. [x] React
|
||||
> 2. [ ] More coming soon`,
|
||||
};
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user