Fix bug with ` within literal blocks

These would previously be eaten if not escaped.
master
Drew DeVault 7 years ago
parent 789dad3a35
commit 44c618230f
  1. 4
      scdoc.1.scd
  2. 5
      src/main.c

@ -85,9 +85,9 @@ to be treated as a literal and copied directly to the output. You may also make
blocks of literal syntax like so:
```
\`\`\`
\```
_This formatting_ will *not* be interpreted by scdoc.
\`\`\`
\```
```
These blocks will be indented one level. Note that literal text is shown

@ -234,7 +234,10 @@ static void parse_literal(struct parser *p, int *indent) {
return;
}
} else {
stops = 0;
while (stops != 0) {
fputc('`', p->output);
--stops;
}
switch (ch) {
case '.':
fprintf(p->output, "\\&.");

Loading…
Cancel
Save