Commit f53680a0 authored by Stefan Probst's avatar Stefan Probst
Browse files

fix: strip github markdown syntax from search results preview

parent 6a940195
Pipeline #178731 failed with stages
in 21 seconds
import excerpt from '@stefanprobst/remark-excerpt'
import { Fragment, useMemo } from 'react'
import markdown from 'remark-parse'
import gfm from 'remark-gfm'
import toMarkdown from 'remark-stringify'
import strip from 'strip-markdown'
import unified from 'unified'
......@@ -10,7 +11,7 @@ import unified from 'unified'
* to match what is used for static content pages, but currently
* this does not have a treeshakeable export.
*/
const markdownProcessor = unified().use(markdown).use(toMarkdown)
const markdownProcessor = unified().use(markdown).use(gfm).use(toMarkdown)
/**
* removes markdown formatting from text.
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment