From b1128d7649f33008821f0f0fa94af2ea73ccef26 Mon Sep 17 00:00:00 2001 From: Tim Lai Date: Thu, 24 Mar 2022 15:47:11 -0700 Subject: [PATCH] fix(oas3): set markdown line breaks to true (#7942) --- src/core/plugins/oas3/wrap-components/markdown.jsx | 1 + 1 file changed, 1 insertion(+) diff --git a/src/core/plugins/oas3/wrap-components/markdown.jsx b/src/core/plugins/oas3/wrap-components/markdown.jsx index a7510e72..72a1cb5b 100644 --- a/src/core/plugins/oas3/wrap-components/markdown.jsx +++ b/src/core/plugins/oas3/wrap-components/markdown.jsx @@ -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") {