toc
Jacky Zhao
2023-06-10 b8c011410d6bcd6837f4efd6a3948196a0f7aeea
quartz/plugins/transformers/gfm.ts
@@ -3,7 +3,7 @@
import smartypants from 'remark-smartypants'
import { QuartzTransformerPlugin } from "../types"
import rehypeSlug from "rehype-slug"
import rehypeAutolinkHeadings from "rehype-autolink-headings/lib"
import rehypeAutolinkHeadings from "rehype-autolink-headings"
export interface Options {
  enableSmartyPants: boolean
@@ -19,7 +19,7 @@
  name = "GitHubFlavoredMarkdown"
  opts: Options
  constructor(opts?: Options) {
  constructor(opts?: Partial<Options>) {
    super()
    this.opts = { ...defaultOptions, ...opts }
  }
@@ -33,7 +33,7 @@
      ? [rehypeSlug, [rehypeAutolinkHeadings, {
        behavior: 'append', content: {
          type: 'text',
          value: '§'
          value: ' §'
        }
      }]]
      : []