marktext / marktext/marktext

front matter action ignored when section exists

Open
#2,238 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

:beetle: pri/low 🐛 bug 🔭 area/editor
Dominant language
TypeScript
Stars
61.6k
Forks
4.6k
Avg merge
23h 49m
Merged PRs (30d)
89

Description

Currently, for Paragraph / Front Matter menu item, the action has no effect if a document already has a front-matter section. A better behavior might be to move the caret and scroll position to the existing front matter.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

No file or test is named. Start by tracing the Paragraph / Front Matter menu action in the editor and how an existing front-matter section is detected. Done means the action moves the caret and scroll position to the existing section instead of having no effect.

Written by the indexing model from the issue text.

Assessment

Tech stack
electron, typescript
Domain
desktop, frontend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.