mirror of
https://github.com/YGGverse/gemtext-php.git
synced 2026-03-31 17:55:38 +00:00
fix inline code parser
This commit is contained in:
parent
889cca12b5
commit
652b605739
1 changed files with 2 additions and 2 deletions
|
|
@ -17,7 +17,7 @@ class Code
|
|||
{
|
||||
// Inline ^```preformatted```
|
||||
case preg_match(
|
||||
'/^(?<tag>[`]{3})(?<inline>[^`]+)(?<close>[`]{3})$/m',
|
||||
'/^(?<tag>[`]{3})(?<alt>[^`]+)(?<close>[`]{3})$/m',
|
||||
$line,
|
||||
$matches
|
||||
):
|
||||
|
|
@ -68,7 +68,7 @@ class Code
|
|||
|
||||
if (self::match($line, $matches))
|
||||
{
|
||||
return isset($matches['inline']);
|
||||
return isset($matches['close']);
|
||||
}
|
||||
|
||||
return false;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue