fix(oas3): set markdown line breaks to true (#7942)

This commit is contained in:
Tim Lai
2022-03-24 15:47:11 -07:00
committed by GitHub
parent 9250e209d4
commit b1128d7649

View File

@@ -8,6 +8,7 @@ import { sanitizer } from "core/components/providers/markdown"
const parser = new Remarkable("commonmark")
parser.block.ruler.enable(["table"])
parser.set({ linkTarget: "_blank" })
parser.set({ breaks: true })
export const Markdown = ({ source, className = "", getConfigs }) => {
if(typeof source !== "string") {