Skip to content

Commit

Permalink
fix: fix the cursor position not on correct line in textarea. #312 #276
Browse files Browse the repository at this point in the history
  • Loading branch information
jaywcjlove committed Dec 11, 2021
1 parent d4ffe5c commit a9599ba
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/TextArea/Markdown.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ export default function Markdown(props: MarkdownProps) {
.processSync(
`<pre class="language-markdown ${prefixCls}-text-pre wmde-markdown-color"><code class="language-markdown">${html2Escape(
markdown,
)}</code></pre>`,
)}\n</code></pre>`,
);
return React.createElement('div', {
className: 'wmde-markdown-color',
Expand Down

1 comment on commit a9599ba

@vercel
Copy link

@vercel vercel bot commented on a9599ba Dec 11, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.