Chayim Refael Friedman f92be7eaab Escape characters in doc comments in macros correctly
Previously they were escaped twice, both by `.escape_default()` and the debug view of strings (`{:?}`). This leads to things like newlines or tabs in documentation comments being `\\n`, but we unescape literals only once, ending up with `\n`.

This was hard to spot because CMark unescaped them (at least for `'` and `"`), but it did not do so in code blocks.

This also was the root cause of #7781. This issue was solved by using `.escape_debug()` instead of `.escape_default()`, but the real issue remained.
We can bring the `.escape_default()` back by now, however I didn't do it because it is probably slower than `.escape_debug()` (more work to do), and also in order to change the code the least.
2021-04-18 03:16:38 +03:00
..
2021-03-23 13:04:43 +03:00
2021-03-21 16:15:41 +01:00
2021-03-28 10:41:18 +08:00
2021-03-27 13:44:54 +08:00
2021-03-27 13:44:54 +08:00
2021-03-28 15:43:11 +00:00
2021-03-27 10:00:37 +00:00
2021-03-28 15:43:11 +00:00
2021-03-24 15:01:37 +08:00
2021-03-21 16:15:41 +01:00