| 1 | [ |
| 2 | { |
| 3 | "name": "Google Docs: spans, a link and a list", |
| 4 | "html": "<meta charset=\"utf-8\"><b style=\"font-weight:normal;\" id=\"docs-internal-guid-1a2b3c4d-7fff-1234-5678-9abcdef01234\"><p dir=\"ltr\" style=\"line-height:1.38;margin-top:0pt;margin-bottom:0pt;\"><span style=\"font-size:11pt;font-family:Arial,sans-serif;color:#000000;background-color:transparent;font-variant:normal;text-decoration:none;vertical-align:baseline;white-space:pre;white-space:pre-wrap;font-weight:700;font-style:normal;\">Christmas menu</span><span style=\"font-size:11pt;font-family:Arial,sans-serif;color:#000000;background-color:transparent;font-variant:normal;text-decoration:none;vertical-align:baseline;white-space:pre;white-space:pre-wrap;font-weight:400;font-style:normal;\"> for the bakery, </span><span style=\"font-size:11pt;font-family:Arial,sans-serif;color:#000000;background-color:transparent;font-variant:normal;text-decoration:none;vertical-align:baseline;white-space:pre;white-space:pre-wrap;font-weight:400;font-style:italic;\">draft two</span></p><br><ul style=\"margin-top:0;margin-bottom:0;padding-inline-start:48px;\"><li dir=\"ltr\" style=\"list-style-type:disc;font-size:11pt;font-family:Arial,sans-serif;color:#000000;background-color:transparent;font-weight:400;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;white-space:pre;\" aria-level=\"1\"><p dir=\"ltr\" style=\"line-height:1.38;margin-top:0pt;margin-bottom:0pt;\" role=\"presentation\"><span style=\"font-size:11pt;font-family:Arial,sans-serif;color:#000000;background-color:transparent;font-variant:normal;text-decoration:none;vertical-align:baseline;white-space:pre;white-space:pre-wrap;font-weight:400;font-style:normal;\">Mince pies, </span><a href=\"https://fennel.example/menu/pies\" style=\"text-decoration:none;\"><span style=\"font-size:11pt;font-family:Arial,sans-serif;color:#1155cc;background-color:transparent;font-variant:normal;text-decoration:underline;vertical-align:baseline;white-space:pre;white-space:pre-wrap;font-weight:400;font-style:normal;\">see the recipe</span></a></p></li><li dir=\"ltr\" style=\"list-style-type:disc;font-size:11pt;font-family:Arial,sans-serif;color:#000000;background-color:transparent;font-weight:400;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;white-space:pre;\" aria-level=\"1\"><p dir=\"ltr\" style=\"line-height:1.38;margin-top:0pt;margin-bottom:0pt;\" role=\"presentation\"><span style=\"font-size:11pt;font-family:Arial,sans-serif;color:#000000;background-color:transparent;font-variant:normal;text-decoration:none;vertical-align:baseline;white-space:pre;white-space:pre-wrap;font-weight:700;font-style:normal;\">Stollen</span></p></li></ul><br><p dir=\"ltr\" style=\"line-height:1.38;margin-top:0pt;margin-bottom:0pt;\"><span style=\"font-size:11pt;font-family:Arial,sans-serif;color:#000000;background-color:transparent;font-variant:normal;text-decoration:none;vertical-align:baseline;white-space:pre;white-space:pre-wrap;font-weight:400;font-style:normal;\">Ana signs it off on Friday.</span></p></b><br class=\"Apple-interchange-newline\">", |
| 5 | "markdown": "**Christmas menu** for the bakery, *draft two*\n\n- Mince pies, [see the recipe](https://fennel.example/menu/pies)\n- **Stollen**\n\nAna signs it off on Friday." |
| 6 | }, |
| 7 | { |
| 8 | "name": "Google Docs: a nested list, flat as Docs writes it", |
| 9 | "html": "<meta charset=\"utf-8\"><b style=\"font-weight:normal;\" id=\"docs-internal-guid-2b\"><ul style=\"margin-top:0;margin-bottom:0;\"><li dir=\"ltr\" style=\"list-style-type:disc;font-size:11pt;font-family:Arial,sans-serif;color:#000000;background-color:transparent;font-weight:400;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;white-space:pre;\" aria-level=\"1\"><p dir=\"ltr\" style=\"line-height:1.38;margin-top:0pt;margin-bottom:0pt;\" role=\"presentation\"><span style=\"font-size:11pt;font-family:Arial,sans-serif;color:#000000;background-color:transparent;font-variant:normal;text-decoration:none;vertical-align:baseline;white-space:pre;white-space:pre-wrap;font-weight:400;\">Bread</span></p></li><ul style=\"margin-top:0;margin-bottom:0;\"><li dir=\"ltr\" style=\"list-style-type:circle;\" aria-level=\"2\"><p dir=\"ltr\" style=\"line-height:1.38;margin-top:0pt;margin-bottom:0pt;\" role=\"presentation\"><span style=\"font-size:11pt;font-family:Arial,sans-serif;color:#000000;background-color:transparent;font-variant:normal;text-decoration:none;vertical-align:baseline;white-space:pre;white-space:pre-wrap;font-weight:400;\">Rye</span></p></li></ul><li dir=\"ltr\" style=\"list-style-type:disc;font-size:11pt;font-family:Arial,sans-serif;color:#000000;background-color:transparent;font-weight:400;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;white-space:pre;\" aria-level=\"1\"><p dir=\"ltr\" style=\"line-height:1.38;margin-top:0pt;margin-bottom:0pt;\" role=\"presentation\"><span style=\"font-size:11pt;font-family:Arial,sans-serif;color:#000000;background-color:transparent;font-variant:normal;text-decoration:none;vertical-align:baseline;white-space:pre;white-space:pre-wrap;font-weight:400;\">Cakes</span></p></li></ul></b>", |
| 10 | "markdown": "- Bread\n - Rye\n- Cakes" |
| 11 | }, |
| 12 | { |
| 13 | "name": "A web page: a heading, links (one relative, one mailto) and a list from 3", |
| 14 | "html": "<meta charset='utf-8'><h2 style=\"font-family: Georgia; color: rgb(30, 36, 64);\">Opening hours</h2><p style=\"margin: 0px 0px 1em;\">We bake every day from <strong>7am</strong>. See <a href=\"https://fennel.example/hours\" style=\"color: blue;\">our hours page</a> or <a href=\"/contact\">contact us</a>.</p>\n<ol start=\"3\">\n <li>Order by noon</li>\n <li>Collect after 4pm</li>\n</ol>\n<p>Questions? Email <a href=\"mailto:hello@fennel.example\">hello@fennel.example</a>.</p>", |
| 15 | "markdown": "## Opening hours\n\nWe bake every day from **7am**. See [our hours page](https://fennel.example/hours) or contact us.\n\n3. Order by noon\n4. Collect after 4pm\n\nQuestions? Email hello@fennel.example." |
| 16 | }, |
| 17 | { |
| 18 | "name": "Apple Mail: lines, a blank line, bold, italics and a numbered list", |
| 19 | "html": "<html><head><meta http-equiv=\"content-type\" content=\"text/html; charset=utf-8\"></head><body style=\"overflow-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;\"><div>Hi Ana,</div><div><br></div><div>The <b>flour delivery</b> moves to <i>Thursday</i>.<br>Can you check the order?</div><div><br></div><div><ol class=\"MailOutline\"><li>Two sacks of rye</li><li>One of spelt</li></ol><div>Thanks,</div></div><div>Paul</div></body></html>", |
| 20 | "markdown": "Hi Ana,\n\nThe **flour delivery** moves to *Thursday*.\nCan you check the order?\n\n1. Two sacks of rye\n2. One of spelt\n\nThanks,\nPaul" |
| 21 | }, |
| 22 | { |
| 23 | "name": "Nested lists, bullets in bullets in numbers", |
| 24 | "html": "<ul><li>Bread<ul><li>Sourdough</li><li>Rye<ol><li>Light</li><li>Dark</li></ol></li></ul></li><li>Cakes</li></ul>", |
| 25 | "markdown": "- Bread\n - Sourdough\n - Rye\n 1. Light\n 2. Dark\n- Cakes" |
| 26 | }, |
| 27 | { |
| 28 | "name": "A javascript: link and one with a password are text; scripts and images go", |
| 29 | "html": "<p>Click <a href=\"javascript:alert(1)\">here</a> or <a href=\"https://user:pw@fennel.example/x\">there</a> for <b>details</b>.</p><script>alert(2)</script><img src=\"https://tracker.example/p.gif\" alt=\"pixel\"><style>p { color: red }</style>", |
| 30 | "markdown": "Click here or there for **details**." |
| 31 | }, |
| 32 | { |
| 33 | "name": "Headings, emphasis inside them dropped", |
| 34 | "html": "<h1 dir=\"ltr\"><span style=\"font-weight:700\">Weekly plan</span></h1><h3>Monday</h3><p><span style=\"font-style:italic\">Bake</span> only.</p>", |
| 35 | "markdown": "# Weekly plan\n\n### Monday\n\n*Bake* only." |
| 36 | }, |
| 37 | { |
| 38 | "name": "Spaces stand outside the marks, one between words", |
| 39 | "html": "<p><b>Bold </b>then <i> spaced </i>words, and a link: <a href=\"https://fennel.example/a_(b)\">the [menu]</a></p>", |
| 40 | "markdown": "**Bold** then *spaced* words, and a link: [the menu](https://fennel.example/a_%28b%29)" |
| 41 | }, |
| 42 | { |
| 43 | "name": "Code from an editor formats nothing: the plain text is pasted", |
| 44 | "html": "<meta charset=\"utf-8\"><div style=\"color: #d4d4d4;background-color: #1e1e1e;font-family: Menlo, Monaco, monospace;white-space: pre;\"><div><span style=\"color: #569cd6;\">let</span><span style=\"color: #d4d4d4;\"> x = 2*3</span></div></div>", |
| 45 | "markdown": null |
| 46 | }, |
| 47 | { |
| 48 | "name": "A link whose text is its address", |
| 49 | "html": "<a href=\"https://fennel.example/menu\">https://fennel.example/menu</a>", |
| 50 | "markdown": "https://fennel.example/menu" |
| 51 | }, |
| 52 | { |
| 53 | "name": "Fable's S2: VS Code, with an italic comment, is code: the plain text is pasted", |
| 54 | "html": "<meta charset=\"utf-8\"><div style=\"color: #cccccc;background-color: #1f1f1f;font-family: Menlo, Monaco, 'Courier New', monospace;font-weight: normal;font-size: 12px;line-height: 18px;white-space: pre;\"><div><span style=\"color: #569cd6;\">func</span><span style=\"color: #cccccc;\"> </span><span style=\"color: #dcdcaa;\">greet</span><span style=\"color: #cccccc;\">() {</span></div><div><span style=\"color: #cccccc;\"> </span><span style=\"color: #6a9955;font-style: italic;\">// say *hi*</span></div><div><span style=\"color: #cccccc;\"> </span><span style=\"color: #c586c0;\">return</span><span style=\"color: #cccccc;\"> </span><span style=\"color: #b5cea8;\">2</span><span style=\"color: #d4d4d4;\">*</span><span style=\"color: #b5cea8;\">3</span></div><div><span style=\"color: #cccccc;\">}</span></div></div>", |
| 55 | "markdown": null |
| 56 | }, |
| 57 | { |
| 58 | "name": "A little inline code in prose stays text", |
| 59 | "html": "<p>Run <code>make ci</code> then <b>push</b>.</p>", |
| 60 | "markdown": "Run make ci then **push**." |
| 61 | }, |
| 62 | { |
| 63 | "name": "Fable's S3: Word's mso-bidi-* and other prefixed weights are not font-weight", |
| 64 | "html": "<html xmlns:o=\"urn:schemas-microsoft-com:office:office\" xmlns:w=\"urn:schemas-microsoft-com:office:word\" xmlns=\"http://www.w3.org/TR/REC-html40\"><head><meta http-equiv=Content-Type content=\"text/html; charset=utf-8\"><meta name=Generator content=\"Microsoft Word 15\"><style><!-- p.MsoNormal {margin:0cm; font-size:12.0pt; font-family:\"Aptos\",sans-serif;} --></style></head><body lang=EN-IE style='tab-interval:36.0pt;word-wrap:break-word'><!--StartFragment--><p class=MsoNormal><b style='mso-bidi-font-weight:normal'>Bold</b> and <i style='mso-bidi-font-style:normal'>italic</i>, <span style='mso-bidi-font-weight:bold'>plain in Latin</span>, <span style='--tw-font-weight:700'>plain too</span>, and <a href=\"https://fennel.example/word\">a link</a><o:p></o:p></p><p class=MsoListParagraphCxSpFirst style='text-indent:-18.0pt;mso-list:l0 level1 lfo1'><![if !supportLists]><span style='font-family:Symbol'>·<span style='font:7.0pt \"Times New Roman\"'> </span></span><![endif]>Rye<o:p></o:p></p><!--EndFragment--></body></html>", |
| 65 | "markdown": "**Bold** and *italic*, plain in Latin, plain too, and [a link](https://fennel.example/word)\n\n· Rye" |
| 66 | }, |
| 67 | { |
| 68 | "name": "Fable's S2: Xcode's RTF (bold keywords in Menlo) is code (the app only: the web has no RTF)", |
| 69 | "rtf": "{\\rtf1\\ansi\\ansicpg1252\\cocoartf2822\n\\cocoatextscaling0\\cocoaplatform0{\\fonttbl\\f0\\fnil\\fcharset0 Menlo-Bold;\\f1\\fnil\\fcharset0 Menlo-Regular;}\n{\\colortbl;\\red255\\green255\\blue255;\\red155\\green35\\blue147;}\n\\pard\\tx593\\pardeftab593\\pardirnatural\\partightenfactor0\n\n\\f0\\b\\fs24 \\cf2 func\n\\f1\\b0 \\cf0 greet() \\{\\\n \n\\f0\\b \\cf2 let\n\\f1\\b0 \\cf0 x = 2*3\\\n \n\\f0\\b \\cf2 return\n\\f1\\b0 \\cf0 x\\\n\\}}", |
| 70 | "markdown": null |
| 71 | }, |
| 72 | { |
| 73 | "name": "Fable's R2: a <pre> in prose keeps its indentation, as a fenced block", |
| 74 | "html": "<p><b>Do this:</b></p><pre> x = 1\n y = 2</pre>", |
| 75 | "markdown": "**Do this:**\n\n```\n x = 1\n y = 2\n```" |
| 76 | }, |
| 77 | { |
| 78 | "name": "A <pre> keeps its blank lines and backticks; the line break after <pre> goes", |
| 79 | "html": "<p>Then <b>restart</b> the service and check the log for errors:</p><pre>\nsystemctl restart base\n\n journalctl -u base # ```tail```</pre><p>That's all.</p>", |
| 80 | "markdown": "Then **restart** the service and check the log for errors:\n\n````\nsystemctl restart base\n\n journalctl -u base # ```tail```\n````\n\nThat's all." |
| 81 | }, |
| 82 | { |
| 83 | "name": "Fable's R3: past 32 levels a block is still a line and a cell a space; a button is still skipped", |
| 84 | "html": "<p><b>Thread</b></p><div><div><div><div><div><div><div><div><div><div><div><div><div><div><div><div><div><div><div><div><div><div><div><div><div><div><div><div><div><div><div><div><div><div><div><div><div><div><div><div><p>one</p><p>two</p><div>three</div><table><tr><td>a</td><td>b</td></tr></table><button>Btn</button>tail</div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div>", |
| 85 | "markdown": "**Thread**\n\none\ntwo\nthree\na b\ntail" |
| 86 | }, |
| 87 | { |
| 88 | "name": "font-weight with !important is bold", |
| 89 | "html": "<span style=\"font-weight: bold !important\">Bold</span> words", |
| 90 | "markdown": "**Bold** words" |
| 91 | } |
| 92 | ] |
| 93 | |