Quotes that hold more than a sentence, and one list of marks
A quote may hold whole blocks, and they now have room: the rule that gives the writing its rhythm reaches only the editor's own children, so inside a quote a heading, a list and a closing line stood jammed together. Leaving as Markdown they were written on consecutive lines, which every other reader folds into one — the sentence after a quoted list became more of the last bullet. They are divided by a quoted blank line now, the same rule the top level has had since 11 August. The marks were two copies of one list, in two dialogs, and only one of them had ever been extended. One list, one grid, twice as many marks, divided under headings — and anything else can be typed into the search box, which on a phone is where the emoji keyboard lives. The changelog is a third of its length: one entry per day rather than one per image, since a round that repaired what an earlier round the same day broke reads as noise afterwards. Every digest is still listed. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
This commit is contained in:
1 parent
c0523f3ba4
commit
c86c63922a
14 files changed
+742
-887
No files matched your search
@@ -102,6 +102,33 @@ describe("blocks", () => {
|
||||
expect(md(doc(quote))).toBe("> zitiert");
|
||||
});
|
||||
|
||||
it("divides the blocks inside a quote, so a list does not swallow what follows", () => {
|
||||
const quote = {
|
||||
type: "blockquote",
|
||||
content: [
|
||||
{ type: "heading", attrs: { level: 3 }, content: [text("Quartalszahlen")] },
|
||||
{
|
||||
type: "bulletList",
|
||||
content: [
|
||||
{ type: "listItem", content: [para(text("Umsatz"))] },
|
||||
{ type: "listItem", content: [para(text("Gewinn"))] },
|
||||
],
|
||||
},
|
||||
para(text("Alles nach Plan.")),
|
||||
],
|
||||
} as DocNode;
|
||||
// The dividing line is quoted as well: an empty line would end the quote.
|
||||
expect(md(doc(quote))).toBe(
|
||||
"> ### Quartalszahlen\n>\n> - Umsatz\n> - Gewinn\n>\n> Alles nach Plan."
|
||||
);
|
||||
});
|
||||
|
||||
it("quotes a quote inside a quote", () => {
|
||||
const inner = { type: "blockquote", content: [para(text("innen"))] } as DocNode;
|
||||
const outer = { type: "blockquote", content: [para(text("außen")), inner] } as DocNode;
|
||||
expect(md(doc(outer))).toBe("> außen\n>\n> > innen");
|
||||
});
|
||||
|
||||
it("fences a code block and keeps its language", () => {
|
||||
const code = { type: "codeBlock", attrs: { language: "js" }, content: [text("const a = 1;")] };
|
||||
expect(md(doc(code))).toBe("```js\nconst a = 1;\n```");
|
||||
|
||||
Reference in new issue
Block a user