mirror of
https://github.com/YGGverse/gemtext-php.git
synced 2026-03-31 17:55:38 +00:00
change Header level attribute possition
This commit is contained in:
parent
a9ecaace57
commit
f9bd1941fb
2 changed files with 4 additions and 4 deletions
|
|
@ -36,10 +36,10 @@ class Document
|
||||||
case Parser\Header::match($line):
|
case Parser\Header::match($line):
|
||||||
|
|
||||||
$this->_entity[] = new Entity\Header(
|
$this->_entity[] = new Entity\Header(
|
||||||
Parser\Header::getLevel(
|
Parser\Header::getText(
|
||||||
$line
|
$line
|
||||||
),
|
),
|
||||||
Parser\Header::getText(
|
Parser\Header::getLevel(
|
||||||
$line
|
$line
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
|
|
|
||||||
|
|
@ -13,8 +13,8 @@ class Header
|
||||||
private ?string $_text;
|
private ?string $_text;
|
||||||
|
|
||||||
public function __construct(
|
public function __construct(
|
||||||
int $level,
|
?string $text = null,
|
||||||
?string $text = null
|
int $level = 1
|
||||||
) {
|
) {
|
||||||
$this->setLevel(
|
$this->setLevel(
|
||||||
$level
|
$level
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue