docgen: syntax blocks don't actually run the code

This commit is contained in:
Andrew Kelley 2021-08-31 17:01:40 -07:00
parent f5553bfefc
commit f4d3d29f92

View file

@ -1100,7 +1100,7 @@ fn genHtml(
try tokenizeAndPrint(allocator, tokenizer, out, code.source_token);
try out.writeAll("</pre>");
if (!do_code_tests) {
if (!do_code_tests or code.is_inline) {
continue;
}