Skip to content

Commit

Permalink
fix #363: unicode chars not captured correctly for headline slugs
Browse files Browse the repository at this point in the history
  • Loading branch information
ikkez committed Jul 23, 2023
1 parent 49c99a5 commit 4547a6d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions markdown.php
Original file line number Diff line number Diff line change
Expand Up @@ -467,8 +467,8 @@ protected function build($str) {
'fence'=>'/^`{3}\h*(\w+)?.*?[^\n]*\n+(.+?)`{3}[^\n]*'.
'(?:\n+|$)/s',
'hr'=>'/^\h*[*_\-](?:\h?[\*_\-]){2,}\h*(?:\n+|$)/',
'atx'=>'/^\h*(#{1,6})\h?(.+?)\h*(?:#.*)?(?:\n+|$)/',
'setext'=>'/^\h*(.+?)\h*\n([=\-])+\h*(?:\n+|$)/',
'atx'=>'/^\h*(#{1,6})\h?(.+?)\h*(?:#.*)?(?:\n+|$)/u',
'setext'=>'/^\h*(.+?)\h*\n([=\-])+\h*(?:\n+|$)/u',
'li'=>'/^(?:(?:[*+\-]|\d+\.)\h.+?(?:\n+|$)'.
'(?:(?: {4}|\t)+.+?(?:\n+|$))*)+/s',
'raw'=>'/^((?:<!--.+?-->|'.
Expand Down

0 comments on commit 4547a6d

Please sign in to comment.