mirror of
https://github.com/jgm/pandoc.git
synced 2026-09-21 13:51:29 +08:00
LaTeX reader: Implement siunitx v3 commands.
We support `\unit`, `\qty`, `\qtyrange`, and `\qtylist` as synonynms of `\si`, `\SI`, `\SIrange`, and `\SIlist`. Closes #7614.
This commit is contained in:
@@ -23,11 +23,15 @@ siunitxCommands :: PandocMonad m
|
||||
=> LP m Inlines -> M.Map Text (LP m Inlines)
|
||||
siunitxCommands tok = M.fromList
|
||||
[ ("si", dosi tok)
|
||||
, ("unit", dosi tok) -- v3 version of si
|
||||
, ("SI", doSI tok)
|
||||
, ("qty", doSI tok) -- v3 version of SI
|
||||
, ("SIrange", doSIrange True tok)
|
||||
, ("qtyrange", doSIrange True tok) -- v3 version of SIrange
|
||||
, ("SIlist", doSIlist tok)
|
||||
, ("qtylist", doSIlist tok) -- v3 version of SIlist
|
||||
, ("numrange", doSIrange False tok)
|
||||
, ("numlist", doSInumlist)
|
||||
, ("SIlist", doSIlist tok)
|
||||
, ("num", doSInum)
|
||||
, ("ang", doSIang)
|
||||
]
|
||||
|
||||
Reference in New Issue
Block a user