We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Description 使用HTMLDeserializer对codeblock进行反序列时,<br/>未正确转换为\n,导致代码未换行,@big-camel 请确认一下呢。
HTMLDeserializer
<br/>
Recording 示例代码如下:
let domString = `<pre data-line-wrapping="false" data-syntax="plain" data-tab-size="2" data-theme="light" style="font-family:" source="" code="" pro",="" ui-monospace,="" sfmono-regular,="" menlo,="" monaco,="" consolas,="" "liberation="" mono",="" "courier="" new",="" monospace;font-size:14px;line-height:1.5;background-color:#fafafa;color:#232930;border-radius:4px;border:1px="" solid="" rgb(229="" 231="" 235="" 1);padding:4px="" 8px;"="">const count = 0<br><br>count++<br><br>console.log(count)</pre>` const document = new DOMParser().parseFromString(domString, 'text/html') const html = HTMLDeserializer.transformWithEditor(editor, document.body) console.log(html)
Actual Output
Expected Output
[ { lineWrapping: false, theme: 'light', tabSize: 2, language: 'plain', code: 'const count = 0\ncount++\nconsole.log(count)', id: '1ovmmypwdbhc', type: 'codeblock', children: [ { text: '' } ] } ]
The text was updated successfully, but these errors were encountered:
big-camel
No branches or pull requests
Description
使用
HTMLDeserializer
对codeblock进行反序列时,<br/>
未正确转换为\n,导致代码未换行,@big-camel 请确认一下呢。Recording
示例代码如下:
Actual Output

Expected Output

The text was updated successfully, but these errors were encountered: