inline: disallow '<' in autolinks
avoid hangs on long <<<<<< sequences
This commit is contained in:
parent
82adc631d9
commit
924d6c44ac
1 changed files with 3 additions and 0 deletions
|
@ -316,6 +316,9 @@ impl<I: Iterator<Item = char> + Clone> Parser<I> {
|
|||
let mut is_url = false;
|
||||
let len = (&mut ahead)
|
||||
.take_while(|c| {
|
||||
if *c == '<' {
|
||||
return false;
|
||||
}
|
||||
if *c == '>' {
|
||||
end = true;
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue