Add support for internal hyperlinks.

This commit is contained in:
Michael R Sweet
2024-12-15 10:23:59 -05:00
parent 4baafde74b
commit 294f5e07c5
3 changed files with 214 additions and 59 deletions

View File

@@ -544,7 +544,7 @@ mmdLoadIO(mmd_t *root, // I - Root node for document or `NULL` for a new d
block = NULL;
continue;
}
else if (*lineptr == '>' && (lineptr - linestart) < 4)
else if (stackptr->parent->type != MMD_TYPE_CODE_BLOCK && *lineptr == '>' && (lineptr - linestart) < 4)
{
// Block quote. See if there is an existing blockquote...
DEBUG_printf(" BLOCKQUOTE (stackptr=%ld)\n", stackptr - stack);