Skip to content

Commit

Permalink
Merge pull request #1559 from joebordes/hacktoberfest20232
Browse files Browse the repository at this point in the history
fix(GenDoc) support text heading inside sections
  • Loading branch information
joebordes authored Oct 26, 2023
2 parents c0b80fa + c355068 commit cc02e55
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions modules/evvtgendoc/OpenDocument/Section.php
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,7 @@ public function __construct(DOMNode $node, OpenDocument $document) {
$this->allowedElements = array(
'OpenDocument_Span',
'OpenDocument_Paragraph',
'OpenDocument_Heading',
);
}

Expand Down Expand Up @@ -120,5 +121,9 @@ public function createParagraph($text = '') {
public function createSpan($text) {
return OpenDocument_Span::instance($this, $text);
}

public function createHeading($text = '', $level = 1) {
return OpenDocument_Heading::instance($this, $text, $level);
}
}
?>

0 comments on commit cc02e55

Please sign in to comment.