Skip to content

Commit

Permalink
Remove HTML and PHP nodes: no longer supported since Jack Jackrum
Browse files Browse the repository at this point in the history
  • Loading branch information
annda committed Nov 1, 2023
1 parent d291c55 commit 3f82b43
Show file tree
Hide file tree
Showing 12 changed files with 0 additions and 259 deletions.
35 changes: 0 additions & 35 deletions _test/json/html_block.json

This file was deleted.

7 changes: 0 additions & 7 deletions _test/json/html_block.txt

This file was deleted.

30 changes: 0 additions & 30 deletions _test/json/html_inline.json

This file was deleted.

1 change: 0 additions & 1 deletion _test/json/html_inline.txt

This file was deleted.

35 changes: 0 additions & 35 deletions _test/json/php_block.json

This file was deleted.

9 changes: 0 additions & 9 deletions _test/json/php_block.txt

This file was deleted.

30 changes: 0 additions & 30 deletions _test/json/php_inline.json

This file was deleted.

1 change: 0 additions & 1 deletion _test/json/php_inline.txt

This file was deleted.

1 change: 0 additions & 1 deletion _test/renderer.test.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ public function test_renderer($dokuwikiMarkup, $expectedJSON, $msg)
global $ID;
$ID = 'wiki:syntax';
$instructions = p_get_instructions($dokuwikiMarkup);
// print_r($instructions);
$doc = p_render('prosemirror', $instructions, $info);
$this->assertJsonStringEqualsJsonString($expectedJSON, $doc, $msg);
}
Expand Down
48 changes: 0 additions & 48 deletions parser/HtmlPhpNode.php

This file was deleted.

4 changes: 0 additions & 4 deletions parser/Node.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,6 @@ abstract class Node implements NodeInterface
'heading' => HeadingNode::class,
'preformatted' => PreformattedNode::class,
'code_block' => CodeBlockNode::class,
'html_inline' => HtmlPhpNode::class,
'html_block' => HtmlPhpNode::class,
'php_inline' => HtmlPhpNode::class,
'php_block' => HtmlPhpNode::class,
'blockquote' => QuoteNode::class,
'image' => ImageNode::class,
'hard_break' => HardBreakNode::class,
Expand Down
58 changes: 0 additions & 58 deletions script/schema.js
Original file line number Diff line number Diff line change
Expand Up @@ -85,64 +85,6 @@ export default function getSpec() {
codeBlock.group = 'protected_block';
nodes = nodes.update('code_block', codeBlock);

nodes = nodes.addToEnd('html_block', {
content: 'text*',
marks: '',
group: 'protected_block',
attrs: {
class: { default: 'html_block' },
},
code: true,
defining: true,
toDOM(node) {
return ['pre', node.attrs, 0];
},
});

nodes = nodes.addToEnd('html_inline', {
content: 'text*',
marks: '',
group: 'inline',
attrs: {
class: { default: 'html_inline' },
},
inline: true,
code: true,
defining: true,
toDOM(node) {
return ['code', node.attrs, 0];
},
});

nodes = nodes.addToEnd('php_block', {
content: 'text*',
marks: '',
group: 'protected_block',
attrs: {
class: { default: 'php_block' },
},
code: true,
defining: true,
toDOM(node) {
return ['pre', node.attrs, 0];
},
});

nodes = nodes.addToEnd('php_inline', {
content: 'text*',
marks: '',
group: 'inline',
attrs: {
class: { default: 'php_inline' },
},
inline: true,
code: true,
defining: true,
toDOM(node) {
return ['code', node.attrs, 0];
},
});

const quote = nodes.get('blockquote');
quote.content = '(block | blockquote | protected_block)+';
quote.group = 'container';
Expand Down

0 comments on commit 3f82b43

Please sign in to comment.