change Scribble HTML renderer to typeset em dashes with &8212;
Closes PR 11049 Closes PR 11539
This commit is contained in:
parent
3b4a1c4e94
commit
0b1b3772f5
|
@ -1263,7 +1263,7 @@
|
||||||
(ascii-ize i)))]
|
(ascii-ize i)))]
|
||||||
[(symbol? i)
|
[(symbol? i)
|
||||||
(case i
|
(case i
|
||||||
[(mdash) '(" " ndash " ")]
|
[(mdash) '(8212 (wbr))] ;; <wbr> encourages breaking after rather than before
|
||||||
;; use "single left/right-pointing angle quotation mark"
|
;; use "single left/right-pointing angle quotation mark"
|
||||||
;; -- it's not a correct choice, but works best for now
|
;; -- it's not a correct choice, but works best for now
|
||||||
;; (see the "Fonts with proper angle brackets"
|
;; (see the "Fonts with proper angle brackets"
|
||||||
|
|
|
@ -19,9 +19,7 @@ special text conversions:
|
||||||
|
|
||||||
@itemize[
|
@itemize[
|
||||||
|
|
||||||
@item{@litchar{---}: converted to @racket['mdash], which the HTML render
|
@item{@litchar{---}: converted to @racket['mdash]}
|
||||||
outputs as an en-dash surrounded by space (so don't put spaces around
|
|
||||||
@litchar{---} in a document)}
|
|
||||||
|
|
||||||
@item{@litchar{--}: converted to @racket['ndash]}
|
@item{@litchar{--}: converted to @racket['ndash]}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user