提交 c8a0aef0 编写于 作者: J Johannes Rieken

hover - use <div> instead of <p> for paragraphs, fixes #2344

上级 a678fe0b
...@@ -77,6 +77,9 @@ function _renderHtml(content: IHTMLContentElement, options: RenderOptions = {}): ...@@ -77,6 +77,9 @@ function _renderHtml(content: IHTMLContentElement, options: RenderOptions = {}):
renderer.link = (href, title, text): string => { renderer.link = (href, title, text): string => {
return `<a href="#" data-href="${href}" title="${title || text}">${text}</a>` return `<a href="#" data-href="${href}" title="${title || text}">${text}</a>`
} }
renderer.paragraph = (text): string => {
return `<div>${text}</div>`;
}
if (options.codeBlockRenderer) { if (options.codeBlockRenderer) {
renderer.code = (code, lang) => { renderer.code = (code, lang) => {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册