ConTeXt writer: improved autolink detection.
It previously failed in some cases with escaped special characters.
This commit is contained in:
parent
60cf6e1dae
commit
da507dcb84
1 changed files with 1 additions and 1 deletions
|
@ -297,7 +297,7 @@ inlineToConTeXt (Link txt (('#' : ref), _)) = do
|
|||
<> brackets (text ref)
|
||||
|
||||
inlineToConTeXt (Link txt (src, _)) = do
|
||||
let isAutolink = txt == [Str src]
|
||||
let isAutolink = txt == [Str (unEscapeString src)]
|
||||
st <- get
|
||||
let next = stNextRef st
|
||||
put $ st {stNextRef = next + 1}
|
||||
|
|
Loading…
Reference in a new issue