summary refs log tree commit diff stats
path: root/config
diff options
context:
space:
mode:
authorAndrey Makarov <ph.makarov@gmail.com>2023-07-07 04:38:37 -0600
committerGitHub <noreply@github.com>2023-07-07 12:38:37 +0200
commit2e987cb75a02be74b53150774316036f0befba88 (patch)
treef9d99bc93093f2fce0e2c2cb7558348fee8eb00c /config
parent148ff74c9385909fc1e10c8d29499fb815a94fb8 (diff)
downloadNim-2e987cb75a02be74b53150774316036f0befba88.tar.gz
Tolerate markup errors for doc comments (#19607) (#22235)
Follow-up to #21576 (for solving #19607).

1) errors in Markdown mode for `.nim` doc comments are reported with
   red color but allow to generate `.html` with the comment represented by
   literate block (monospaced text). We suppose that it's what people want
   for (supposedly) small doc comments. And this behavior is also a bit
   more Markdown-ish in the sense that Markdown generally does not have
   the concept of parsing error.
   - However, for standalone `.md` it's **not** applied because for large
     files the consequences are way bigger.

(In {.doctype: rst.} mode the behavior is the same as before -- report
the error and stop.)
In future, when our parser can handle Markdown without errors according to
the spec, this code will most probably be not needed.
Diffstat (limited to 'config')
0 files changed, 0 insertions, 0 deletions