Skip to content

Commit

Permalink
Escaped double quotes inside double quotes
Browse files Browse the repository at this point in the history
When having something like:
~~~
Title aa

"Pre\"B\"Post"

```
  "G"
```
~~~
we get the warning:
```
aa.md:7: warning: unexpected command endcode
```

this looks like to be introduced in version 1.9.2 and a regression regarding:
```
Commit: 2683d17 [2683d17]
Date: Friday, April 30, 2021 12:26:12 PM
issue #8525 Links aren't properly rendered when preceded by quoted text

2 or more returns inside a quoted text were not handled properly, added a repeat count.
```
Note that the output originally was not ok either (missing some backslashes).
Note checked #8525 again as well, looks OK.
  • Loading branch information
albert-github committed Dec 22, 2021
1 parent 16d5e10 commit 89774bd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/doctokenizer.l
Expand Up @@ -318,7 +318,7 @@ LNKWORD3 ([0-9a-z_A-Z\-]+("/"|"\\"))*[0-9a-z_A-Z\-]+("."[0-9a-z_A-Z]+)+
CHARWORDQ [^ \t\n\r\\@<>()\[\]:;\?{}&%$#,."=']
ESCWORD ("%"{ID}(("::"|"."){ID})*)|("%'")
CHARWORDQ1 [^ \-+0-9\t\n\r\\@<>()\[\]:;\?{}&%$#,."=']
WORD1 {ESCWORD}|{CHARWORDQ1}{CHARWORDQ}*|"{"|"}"|"'\"'"|("\""([^"\n]*\n?)*[^"\n]*"\"")
WORD1 {ESCWORD}|{CHARWORDQ1}{CHARWORDQ}*|"{"|"}"|"'\"'"|("\""([^"\n]*(\\\")?\n?)*[^"\n]*"\"")
WORD2 "."|","|"("|")"|"["|"]"|"::"|":"|";"|"\?"|"="|"'"
WORD1NQ {ESCWORD}|{CHARWORDQ}+|"{"|"}"
WORD2NQ "."|","|"("|")"|"["|"]"|"::"|":"|";"|"\?"|"="|"'"
Expand Down

0 comments on commit 89774bd

Please sign in to comment.