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] --- inputs/test.but | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) (limited to 'inputs/test.but') diff --git a/inputs/test.but b/inputs/test.but index dddc2dd..751ec1b 100644 --- a/inputs/test.but +++ b/inputs/test.but @@ -48,7 +48,7 @@ chapter title I can write before feeling silly. This is a para\#{another{} comment}graph of text. It has line\#{yet another one} breaks in between words, multiple - spaces (ignored), and \e{emphasised text} as well as \c{code + spaces (ignored), \e{emphasised text} and \s{strong text} as well as \c{code fragments}. \#{This is an inline comment alone in a paragraph.} @@ -248,8 +248,9 @@ u \cfg{input-charset}{ASCII} -Testing ligatures in normal (fi), empasised (\e{fi}), code (\c{fi}) and -weak code (\cw{fi}). The latter two should not be ligated. +Testing ligatures in normal (fi), emphasised (\e{fi}), strong +(\s{fi}), code (\c{fi}) and weak code (\cw{fi}). The latter two should +not be ligated. \c Also in a code paragraph (fi) with bold (fi) and italic (fi). \e bb ii @@ -278,6 +279,11 @@ Similarly, we should support things like hyperlinks and \e{in the \W{http://www.tartarus.org/}{middle} of them}, and also \e{at the \W{http://home.att.net/~cecw/lastpage.htm}{end}}. +Try that all over against with \c{\\s}: hyperlinks +\s{\W{http://www.tartarus.org/}{at the beginning} of strong sections}, +and \s{in the \W{http://www.tartarus.org/}{middle} of them}, and also +\s{at the \W{http://home.att.net/~cecw/lastpage.htm}{end}}. + Here's a hyperlink containing some special characters: \W{http://ad/}{here}. (Not that it'll \e{work}, but you can at least determine that it's been correctly escaped by inspection of -- cgit v1.1