mirror of
https://github.com/jgm/pandoc.git
synced 2026-08-28 11:16:33 +00:00
JATS reader: strip ref- prefix from ref id in xref.
This completes commit 807a574e9d.
Closes #8007.
This commit is contained in:
@@ -528,7 +528,9 @@ parseInline (Elem e) =
|
||||
return $ if refType == Just ("ref-type","bibr")
|
||||
then cite
|
||||
(map (\id' ->
|
||||
Citation{ citationId = id'
|
||||
let id'' = fromMaybe id' $
|
||||
T.stripPrefix "ref-" id'
|
||||
in Citation { citationId = id''
|
||||
, citationPrefix = []
|
||||
, citationSuffix = []
|
||||
, citationMode = NormalCitation
|
||||
|
||||
Reference in New Issue
Block a user