From dcf080aa0e011de37a154e9e8a97dd7546a4a1b1 Mon Sep 17 00:00:00 2001 From: Simon Tatham Date: Sun, 10 Mar 2013 16:58:01 +0000 Subject: Add \s for 'strong' text, i.e. bold rather than italics. I've missed this a couple of times in Halibut markup recently (in particular, it's handy to have a typographical distinction between 'this term is emphasised because it's new' and 'this term is emphasised because I want you to pay attention to it'), so here's an implementation, basically parallel to \e. One slight oddity is that strong text in headings will not be distinguished in some output formats, since they already use bolded text for their headings. [originally from svn r9772] --- index.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'index.c') diff --git a/index.c b/index.c index 1b03645..bdb8ba1 100644 --- a/index.c +++ b/index.c @@ -71,11 +71,11 @@ void index_merge(indexdata *idx, int is_explicit, wchar_t *tags, word *text, word *w; for (w = text; w; w = w->next) { - if (w->type == word_Emph) + if (w->type == word_Emph || w->type == word_Strong) w->type = word_Normal; - else if (w->type == word_EmphSpace) + else if (w->type == word_EmphSpace || w->type == word_StrongSpace) w->type = word_WhiteSpace; - else if (w->type == word_EmphQuote) + else if (w->type == word_EmphQuote || w->type == word_StrongQuote) w->type = word_Quote; } } -- cgit v1.1