mirror of
https://github.com/quartz-community/github-flavored-markdown.git
synced 2026-07-22 02:50:28 +00:00
docs: update README for v5 unified config system
This commit is contained in:
parent
6474b1b1cf
commit
764a27197e
1 changed files with 19 additions and 15 deletions
34
README.md
34
README.md
|
|
@ -10,29 +10,33 @@ npx quartz plugin add github:quartz-community/github-flavored-markdown
|
|||
|
||||
## Usage
|
||||
|
||||
```ts
|
||||
// quartz.config.ts
|
||||
import * as ExternalPlugin from "./.quartz/plugins"
|
||||
```yaml title="quartz.config.yaml"
|
||||
plugins:
|
||||
- source: github:quartz-community/github-flavored-markdown
|
||||
enabled: true
|
||||
```
|
||||
|
||||
const config: QuartzConfig = {
|
||||
plugins: {
|
||||
transformers: [
|
||||
ExternalPlugin.GitHubFlavoredMarkdown(),
|
||||
],
|
||||
},
|
||||
}
|
||||
For advanced use cases, you can override in TypeScript:
|
||||
|
||||
```ts title="quartz.ts (override)"
|
||||
import * as ExternalPlugin from "./.quartz/plugins";
|
||||
|
||||
ExternalPlugin.GitHubFlavoredMarkdown({
|
||||
enableSmartyPants: true,
|
||||
linkHeadings: true,
|
||||
});
|
||||
```
|
||||
|
||||
## Configuration
|
||||
|
||||
| Option | Type | Default | Description |
|
||||
|--------|------|---------|-------------|
|
||||
| enableSmartyPants | `boolean` | `true` | Whether to enable SmartyPants. |
|
||||
| linkHeadings | `boolean` | `true` | Whether to link headings. |
|
||||
| Option | Type | Default | Description |
|
||||
| ------------------- | --------- | ------- | ------------------------------ |
|
||||
| `enableSmartyPants` | `boolean` | `true` | Whether to enable SmartyPants. |
|
||||
| `linkHeadings` | `boolean` | `true` | Whether to link headings. |
|
||||
|
||||
## Documentation
|
||||
|
||||
See the [Quartz documentation](https://quartz.jzhao.xyz/) for more information.
|
||||
See the [Quartz documentation](https://quartz.jzhao.xyz/plugins/GitHubFlavoredMarkdown) for more information.
|
||||
|
||||
## License
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue