Commit Graph

10 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
andrii
4456c95c7a Fixing test for type modifiers, updating trnscripts 2024-01-04 09:42:12 +01:00
Paul Chiusano
bf71fd477a transcript refresh 2022-04-06 16:20:44 -05:00
Arya Irani
19daa28398 Merge branch 'trunk' into topic/merge-trunk-2022-02-07 2022-02-07 19:29:57 -07:00
Arya Irani
6055ca6184 bring transcript outputs up to date 2021-12-06 11:54:15 -10:00
Arya Irani
d9cd5d914e Merge remote-tracking branch 'origin/trunk' into topic/remove-cycle-length
# Conflicts:
#	codebase2/codebase-sqlite/U/Codebase/Sqlite/Operations.hs
#	parser-typechecker/src/Unison/Codebase/SqliteCodebase.hs
#	parser-typechecker/src/Unison/Codebase/SqliteCodebase/Conversions.hs
#	parser-typechecker/src/Unison/Hashing/V1/Convert.hs
#	parser-typechecker/src/Unison/Hashing/V1/DataDeclaration.hs
#	parser-typechecker/src/Unison/Hashing/V1/Pattern.hs
#	parser-typechecker/src/Unison/Hashing/V1/Reference.hs
#	parser-typechecker/src/Unison/Hashing/V1/Reference/Util.hs
#	parser-typechecker/src/Unison/Hashing/V1/Referent.hs
#	parser-typechecker/src/Unison/Hashing/V1/Term.hs
#	parser-typechecker/src/Unison/Hashing/V1/Type.hs
#	parser-typechecker/src/Unison/Hashing/V2/Reference.hs
#	parser-typechecker/src/Unison/Hashing/V2/Term.hs
#	parser-typechecker/src/Unison/Hashing/V2/Type.hs
#	parser-typechecker/src/Unison/Runtime/ANF/Serialize.hs
#	parser-typechecker/unison-parser-typechecker.cabal
#	unison-core/src/Unison/DataDeclaration.hs
#	unison-core/src/Unison/Reference.hs
#	unison-core/unison-core1.cabal
2021-10-14 21:26:56 -04:00
Arya Irani
37115f790e tweak transcript 2021-10-06 18:06:21 -04:00
Arya Irani
853241102c fix a bug in HandleInput where find-by-type fails when the only exact matches are unnamed builtins 2021-10-06 17:50:35 -04:00