author | Olivier Brunel
<jjk@jjacky.com> 2023-01-13 10:44:59 UTC |
committer | Olivier Brunel
<jjk@jjacky.com> 2023-01-13 10:54:17 UTC |
parent | 0d6b04b270acae89588245ae21c4a9050960d0b1 |
doc/qmdoc.1.md | +2 | -0 |
src/main.c | +6 | -1 |
diff --git a/doc/qmdoc.1.md b/doc/qmdoc.1.md index dddd441..746aa80 100644 --- a/doc/qmdoc.1.md +++ b/doc/qmdoc.1.md @@ -390,6 +390,8 @@ creations : the text of the link : the text of the link, followed by the section number in between parenthesis; E.g: `foobar(1)` +Note that the text of the link will be in bold, even when no link is created. + # INTRA LINKS diff --git a/src/main.c b/src/main.c index a990402..c165f3a 100644 --- a/src/main.c +++ b/src/main.c @@ -1023,12 +1023,17 @@ leave_span(MD_SPANTYPE type, void *details, void *ctx_) || !raw_text(ctx, buf + 1, 1) || !raw_text(ctx, ".html", 5) || !raw_str(ctx, "\">") + || !raw_str(ctx, "<strong>") || !raw_text(ctx, s, l) + || !raw_str(ctx, "</strong>") || !raw_str(ctx, buf) || !raw_str(ctx, "</a>")) return ERR_PARSER_ENTER_SPAN; } else { - if (!raw_text(ctx, s, l) || !raw_str(ctx, buf)) + if (!raw_str(ctx, "<strong>") + || !raw_text(ctx, s, l) + || !raw_str(ctx, "</strong>") + || !raw_str(ctx, buf)) return ERR_PARSER_LEAVE_SPAN; } } else {