mirror of
https://github.com/YGGverse/gemtext-php.git
synced 2026-04-01 02:05:32 +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```
|
// Inline ^```preformatted```
|
||||||
case preg_match(
|
case preg_match(
|
||||||
'/^(?<tag>[`]{3})(?<inline>[^`]+)(?<close>[`]{3})$/m',
|
'/^(?<tag>[`]{3})(?<alt>[^`]+)(?<close>[`]{3})$/m',
|
||||||
$line,
|
$line,
|
||||||
$matches
|
$matches
|
||||||
):
|
):
|
||||||
|
|
@ -68,7 +68,7 @@ class Code
|
||||||
|
|
||||||
if (self::match($line, $matches))
|
if (self::match($line, $matches))
|
||||||
{
|
{
|
||||||
return isset($matches['inline']);
|
return isset($matches['close']);
|
||||||
}
|
}
|
||||||
|
|
||||||
return false;
|
return false;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue