We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent fbf7c4a commit 63af3deCopy full SHA for 63af3de
web/src/markdown.tsx
@@ -48,8 +48,9 @@ const dedent = (block: S): S => {
48
const indent = getSpaceIndentation(lines) || getTabIndentation(lines)
49
return indent === 0
50
? block
51
- // don't dedent empty lines
52
- : lines.map(s => s.length > indent ? s.substring(indent) : s).join('\n')
+ : lines.map(s => s.length > indent ? s.substring(indent) : s) // don't dedent empty lines
+ .map(s => s.trimEnd()) // Workaround for a bug in micromark - trailing spaces trip up list rendering
53
+ .join('\n')
54
}
55
56
// Micromark encodes these chars inside <pre><code> blocks, which trips up highlight.js.
0 commit comments