Editor hashtag pill breaks when markdownlint decorates the line #155
Labels
No labels
abandoned
active
audit
blocked
data-safety
difficulty:easy
difficulty:hard
difficulty:high
difficulty:medium
docs
done
duplicate
notebook-v0
open
priority:high
ready
release-critical
safe-mode
spec
spec-backlog
subsystem:api
subsystem:backlog
subsystem:bases
subsystem:ci
subsystem:command
subsystem:configuration
subsystem:consolidate
subsystem:dependencies
subsystem:desktop-electron
subsystem:diffmerge
subsystem:docker
subsystem:docs
subsystem:fuzzy
subsystem:graph
subsystem:hotkeys
subsystem:lapis
subsystem:maint
subsystem:maintenance
subsystem:markdown
subsystem:markdown-lint
subsystem:md018
subsystem:notebook
subsystem:notifications
subsystem:opfs
subsystem:package
subsystem:plugin-markdown
subsystem:plugin-tasks
subsystem:plugins
subsystem:registry
subsystem:release
subsystem:renovate
subsystem:restore
subsystem:scripts
subsystem:search
subsystem:settings
subsystem:spec
subsystem:tasks
subsystem:testing
subsystem:ui
subsystem:web
subsystem:workspace
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
lapis-notes/lapis#155
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Source-mode
#tagchips use two marks (cm-hashtag-beginon#,cm-hashtag-endon the name). Markdownlint and Harper spellcheck addcm-lintRangemarks that can split across those boundaries and break pill borders, radii, and underlines.Problem
#tagwas fixed with generalized lint+hashtag CSS.#Tags/#Tagsstill broke because MD018 splits lint into two siblingcm-lintRangespans at column 2 (#+first letter | rest of name), not only trailing-space MD009.Goal
CSS-only: keep two-part hashtag marks; connected pill when lint includes trailing whitespace after the tag name.
Scope
editor-shared.csswith.cm-hashtag-end + .cm-lintRangerules#Tags \n#TagsvisuallyAcceptance Criteria
#tagline with markdown lint: connected pill (prior fix)#Tagsand#Tagslines with markdown lint: connected pill (split lint ranges + optional trailing space)pnpm --filter @lapis-notes/markdown lintpassesImplementation Notes
Add trailing-sibling rules: flatten
cm-hashtag-endright radius when followed bycm-lintRange; suppress underline on that lint segment.Validation Commands
Implementation Summary
CSS in editor-shared.css keeps hashtag pills connected under lint: full-line wrap, MD018-style split at column 2, and trailing lint after cm-hashtag-end. Playwright screenshot tests cover #tag, #Tags, and #Tags (trailing space).
Reopen Reason
Regression: #Tags with trailing space breaks pill when MD009 lint follows cm-hashtag-end.