mirror of
https://github.com/jgm/pandoc.git
synced 2026-08-28 17:20:47 +08:00
@@ -380,8 +380,9 @@ orgRefCiteKey =
|
||||
endOfCitation = try $ do
|
||||
many $ satisfy isCiteKeySpecialChar
|
||||
satisfy $ not . isCiteKeyChar
|
||||
in try $ satisfy isCiteKeyChar `many1TillChar` lookAhead endOfCitation
|
||||
|
||||
in try $ do
|
||||
optional (char '&') -- this is used in org-ref v3
|
||||
satisfy isCiteKeyChar `many1TillChar` lookAhead endOfCitation
|
||||
|
||||
-- | Supported citation types. Only a small subset of org-ref types is
|
||||
-- supported for now. TODO: rewrite this, use LaTeX reader as template.
|
||||
|
||||
@@ -0,0 +1,6 @@
|
||||
```
|
||||
% pandoc -f org -t markdown
|
||||
some text cite:&long-2004-tecton-evolut
|
||||
^D
|
||||
some text @long-2004-tecton-evolut
|
||||
```
|
||||
Reference in New Issue
Block a user