1
0
mirror of https://github.com/laurent22/joplin.git synced 2025-01-29 19:13:59 +02:00

Desktop: Fixes #7694: Markdown editor not surrounding highlighted text with backticks (#7697)

This commit is contained in:
Helmut K. C. Tessarek 2023-02-08 09:24:20 -05:00 committed by GitHub
parent 2656666ed8
commit 322641ccd6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -414,7 +414,7 @@ function CodeMirror(props: NoteBodyEditorProps, ref: any) {
const maxWidthCss = props.contentMaxWidth ? `
margin-right: auto !important;
margin-left: auto !important;
max-width: ${props.contentMaxWidth}px !important;
max-width: ${props.contentMaxWidth}px !important;
` : '';
const element = document.createElement('style');
@ -869,7 +869,7 @@ function CodeMirror(props: NoteBodyEditorProps, ref: any) {
function renderEditor() {
const matchBracesOptions = Setting.value('editor.autoMatchingBraces') ? { override: true, pairs: '()[]{}\'\'""‘’“”()《》「」『』【】〔〕〖〗〘〙〚〛' } : false;
const matchBracesOptions = Setting.value('editor.autoMatchingBraces') ? { override: true, pairs: '``()[]{}\'\'""‘’“”()《》「」『』【】〔〕〖〗〘〙〚〛' } : false;
return (
<div style={cellEditorStyle}>
@ -927,4 +927,3 @@ function CodeMirror(props: NoteBodyEditorProps, ref: any) {
}
export default forwardRef(CodeMirror);