mirror of
https://github.com/alrayyes/wiki.git
synced 2025-05-22 15:52:12 +00:00
various polish
This commit is contained in:
parent
4c904d88ab
commit
e0ebee5aa9
30 changed files with 339 additions and 190 deletions
quartz/plugins/transformers
|
@ -1,4 +1,3 @@
|
|||
import { PluggableList } from "unified"
|
||||
import remarkGfm from "remark-gfm"
|
||||
import smartypants from 'remark-smartypants'
|
||||
import { QuartzTransformerPlugin } from "../types"
|
||||
|
@ -20,14 +19,14 @@ export const GitHubFlavoredMarkdown: QuartzTransformerPlugin<Partial<Options> |
|
|||
return {
|
||||
name: "GitHubFlavoredMarkdown",
|
||||
markdownPlugins() {
|
||||
return opts.enableSmartyPants ? [remarkGfm] : [remarkGfm, smartypants]
|
||||
return opts.enableSmartyPants ? [remarkGfm, smartypants] : [remarkGfm]
|
||||
},
|
||||
htmlPlugins() {
|
||||
if (opts.linkHeadings) {
|
||||
return [rehypeSlug, [rehypeAutolinkHeadings, {
|
||||
behavior: 'append', content: {
|
||||
type: 'text',
|
||||
value: ' §'
|
||||
value: ' §',
|
||||
}
|
||||
}]]
|
||||
} else {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue