Commit Graph

13 Commits

Author SHA1 Message Date
Greg Pfeil
0031542faf
Add a space before code block info strings
This is for consistency with the `cmark` style. Now the blocks we still
pretty-print ourselves will match the bulk of them that `cmark`
produces.
2024-07-10 13:56:07 -06:00
Greg Pfeil
1dc181b99a
Update the transcripts with cmark
`cmark`’s pretty-printer matches our output pretty well, with a few differences:
- it puts a space between the fence and the info string for in code blocks;
- it prefers `-` over `*` for bulleted lists (as do I) and it indents them;
- it `\`-escapes certain chars very conservatively;
- it prefers indented/unfenced code blocks if there is no info string; and
- it prefers `*` over `_` (unlike any sane person).

This also shows how the change fixes a number of issues:
- fix2158-1.output.md also illustrates how this change fixes #1809;
- alias-many.output.md and input-parse-errors.output.md show how fenced
  code blocks without an info string would use the beginning of the
  content as the info string;
- transcripts-round-trip/main.output.md shows how output blocks for
  generated `unison` stanzas (which could contain nested fenced blocks)
  might not have long-enough fences; and
- error-messages.output.md and generic-parse-errors.output.md show how
  Unison errors were reported on the wrong line number (and thus the
  printed error lines were also incorrect).
2024-07-10 13:37:51 -06:00
Chris Penner
5ca1eb3b8d Replace '.' references with scratch/main 2024-06-25 11:11:07 -07:00
Dan Doel
e0b178b005 Push type checking through match statements 2024-03-08 15:18:35 -05:00
andrii
8b857b152c Adding a message for when ucm started reloading changes 2023-12-22 12:55:24 +01:00
Paul Chiusano
8d1ac3bc29 refresh transcripts 2022-12-02 16:08:40 -06:00
Paul Chiusano
96f63a3192 refresh transcripts 2022-12-02 13:53:10 -06:00
Paul Chiusano
e89fd61266 Improve error message 2022-12-02 13:50:20 -06:00
Chris Penner
35e7d2710f Refresh transcripts with formatting fix 2022-07-21 15:56:31 -06:00
rlmark
ac2bc29849 fixes tests and transcripts 2021-08-24 11:33:27 -07:00
Paul Chiusano
6181733dcb error message cleanup
whenever showing two mismatched types, ensure they are left aligned for easy visual comparison
2021-04-08 00:24:00 -05:00
Paul Chiusano
9271749a04 Pull base.u out into its own file rather than embedding in the transcript 2021-03-31 20:44:01 -05:00
Dan Doel
e4961c84b2 Fix test case; improve transcript test and add output 2020-11-25 21:12:09 -05:00