Add extended markdown: task lists, highlight, sub/superscript, heading IDs, emoji
- Task lists: - [x] / - [ ] with checkbox glyphs, done items struck through
- Highlight: ==text== -> <mark>
- Subscript: ~text~ -> <sub> (runs after ~~ strikethrough to avoid conflict)
- Superscript: ^text^ -> <sup>
- Heading IDs: ### Title {#my-id} adds id attribute for anchor links
- Ordered lists: now properly wrapped in <ol>
- Emoji: :name: shortcodes (~100 common emojis)
- CSS for all new elements
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -5163,6 +5163,16 @@ body.lt-is-offline .lt-main { margin-top: 2rem; transition: margin-top 0.25s eas
|
||||
.lt-markdown a:focus-visible { outline: 2px solid var(--accent-cyan); outline-offset: 2px; }
|
||||
.lt-markdown strong { color: var(--text-primary); }
|
||||
.lt-markdown img, .md-image { max-width: 100%; height: auto; border: 1px solid var(--border-dim); border-radius: 2px; display: block; margin: 0.5rem 0; }
|
||||
.lt-markdown mark { background: var(--accent-yellow-dim, #2a2500); color: var(--accent-yellow, #e6c619); padding: 0 3px; border-radius: 2px; }
|
||||
.lt-markdown del { color: var(--text-muted); text-decoration: line-through; }
|
||||
.lt-markdown sub, .lt-markdown sup { font-size: 0.7em; line-height: 0; }
|
||||
.lt-markdown .task-item { list-style: none; margin-left: -1.2em; }
|
||||
.lt-markdown .task-cb { margin-right: 0.35em; font-size: 1em; }
|
||||
.lt-markdown .task-done { color: var(--text-muted); text-decoration: line-through; }
|
||||
.lt-markdown .task-todo { color: var(--text-secondary); }
|
||||
.lt-markdown ol { padding-left: 1.5em; margin: 0.5rem 0; }
|
||||
.lt-markdown ol li { color: var(--text-secondary); }
|
||||
.lt-markdown ol li::marker { color: var(--accent-orange); }
|
||||
.lt-markdown table { width: 100%; border-collapse: collapse; font-size: 0.78rem; margin: 0.75rem 0; }
|
||||
.lt-markdown th { background: var(--bg-secondary); color: var(--accent-cyan); padding: 0.4rem 0.6rem; border: 1px solid var(--border-dim); text-align: left; font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.08em; }
|
||||
.lt-markdown td { padding: 0.35rem 0.6rem; border: 1px solid var(--border-dim); color: var(--text-secondary); }
|
||||
|
||||
Reference in New Issue
Block a user