Skip to content

Commit

Permalink
Pasted text: unformatted
Browse files Browse the repository at this point in the history
  • Loading branch information
annda committed Dec 11, 2023
1 parent c26dfa0 commit b54e692
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions parser/Mark.php
Original file line number Diff line number Diff line change
Expand Up @@ -188,6 +188,7 @@ public function getClosingSyntax()
*/
protected function getUnformattedSyntax($type)
{
// %% are preserved, nowiki is converted to %%
if (strpos($this->parent->getInnerSyntax(), '%%') === false) {
return '%%';
}
Expand Down
2 changes: 1 addition & 1 deletion script/schema.js
Original file line number Diff line number Diff line change
Expand Up @@ -327,7 +327,7 @@ export default function getSpec() {

marks = marks.addToEnd('unformatted', {
parseDOM: [
{ tag: 'span', class: 'unformatted' },
{ tag: 'span.unformatted' },
],
toDOM() {
return ['span', { class: 'unformatted' }];
Expand Down

0 comments on commit b54e692

Please sign in to comment.