1
0
Fork 0
mirror of https://github.com/plankanban/planka.git synced 2025-07-18 20:59:44 +02:00

fix: Prevent auto-filling title in YFM note

Closes #1172
This commit is contained in:
Maksim Eltyshev 2025-06-05 15:10:46 +02:00
parent 608a7c983f
commit 21f90610bc
3 changed files with 18 additions and 1 deletions

View file

@ -22,6 +22,19 @@ index 2152fd6..ceda0c1 100644
yfmHeading: {
h1Key: f.toPM(A.Heading1),
h2Key: f.toPM(A.Heading2),
diff --git a/node_modules/@gravity-ui/markdown-editor/build/esm/extensions/yfm/YfmNote/YfmNoteSpecs/index.js b/node_modules/@gravity-ui/markdown-editor/build/esm/extensions/yfm/YfmNote/YfmNoteSpecs/index.js
index bd3d4b9..5a5a5be 100644
--- a/node_modules/@gravity-ui/markdown-editor/build/esm/extensions/yfm/YfmNote/YfmNoteSpecs/index.js
+++ b/node_modules/@gravity-ui/markdown-editor/build/esm/extensions/yfm/YfmNote/YfmNoteSpecs/index.js
@@ -9,7 +9,7 @@ export { noteType, noteTitleType } from "./utils.js";
export const YfmNoteSpecs = (builder, opts) => {
const schemaSpecs = getSchemaSpecs(opts, builder.context.get('placeholder'));
builder
- .configureMd((md) => md.use(yfmPlugin, { log }))
+ .configureMd((md) => md.use(yfmPlugin, { log, notesAutotitle: false }))
.addNode(NoteNode.Note, () => ({
spec: schemaSpecs[NoteNode.Note],
toMd: serializerTokens[NoteNode.Note],
diff --git a/node_modules/@gravity-ui/markdown-editor/build/esm/presets/yfm.js b/node_modules/@gravity-ui/markdown-editor/build/esm/presets/yfm.js
index ed2a9db..f95b693 100644
--- a/node_modules/@gravity-ui/markdown-editor/build/esm/presets/yfm.js

View file

@ -37,7 +37,7 @@ export default [
(md) => md.use(imsize, { enableInlineStyling: true }),
video,
table,
note,
(md) => md.use(note, { notesAutotitle: false }),
cut,
meta,
deflist,

View file

@ -230,6 +230,10 @@
min-width: auto;
}
}
.yfm-note {
min-height: 60px;
}
}
.hljs {