feat(outline): outline type + outliner — S3 (#109)
CI / ci (push) Canceled after 0s
CI / ci (push) Canceled after 0s
Dedicated block surface (ADR-0013, #105 variant B): OutlineTree parses/serializes plain nested-bullet markdown leniently and normalizes on save; the outliner promotes one NSTextView over the focused row with LogSeq-style keys (Tab/⇧Tab, ⌥↑/⌥↓ subtree move, ↑/↓ hop, ⇧↑/⇧↓ block selection, ⌘↑/⌥↓ fold, Enter split), folds session-scoped by runtime node UUID. New Outline ⇧⌘N stages a type: outline draft through the existing autosave/conflict machinery; reading renders the serialized markdown unchanged. Outline rows use the body face at its natural line box — the prose CSS-1.8 lineHeightMultiple grew the focused row and detached the bullet (test-pinned). Finish-audit fixes included: paste-multiline sanitizing at setText, dead Enter disjunct, dead Row.path. Closes #109
This commit is contained in:
1 parent
e55747e7fe
commit
c23ee0f62f
21 files changed
+1809
-21
No files matched your search
@@ -90,6 +90,23 @@ struct ReadingPresenterTests {
|
||||
#expect(!html.contains("<li>one</li></ul>"))
|
||||
}
|
||||
|
||||
/// #109: an outline body (canonical nested bullets, exactly what
|
||||
/// OutlineTree.serialize emits) renders as NESTED <ul> through the
|
||||
/// unchanged apex pipeline — reading mode needs no outline-specific
|
||||
/// surface (ADR-0013: "nested lists already render").
|
||||
@Test
|
||||
func `pipeline nested bullets render nested lists`() throws {
|
||||
let src = "- intro\n - first point\n - deep evidence\n - second point\n- outro"
|
||||
let (html, blocks) = ReadingPresenter.page(for: src, postFolder: nil)
|
||||
try assertRendered(html, blocks: blocks, count: 1)
|
||||
#expect(html.contains("<ul data-source-line=\"1\">"))
|
||||
// apex emits bare <li>intro + a nested <ul> for the children
|
||||
#expect(html.contains("<li>intro\n<ul>"))
|
||||
#expect(html.contains("<li>deep evidence</li>"))
|
||||
#expect(html.contains("<li>second point</li>"))
|
||||
#expect(html.contains("<li>outro</li>"))
|
||||
}
|
||||
|
||||
/// Tables, quotes, fenced code, HR, links — the #69 set on one page.
|
||||
@Test
|
||||
func `pipeline constructs`() throws {
|
||||
|
||||
Reference in new issue
Block a user