Skip to content

Commit 2563f3c

Browse files
author
Martin Brecht-Precht
committed
Added CommentBlock handling
Removed HTML fragments.
1 parent 4111ddb commit 2563f3c

File tree

3 files changed

+9
-4
lines changed

3 files changed

+9
-4
lines changed

src/Common/BlockType.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,17 +7,17 @@
77
*
88
* @package Markdom\Common
99
*/
10-
final class BlockType
10+
class BlockType
1111
{
1212

1313
const TYPE_CODE = 'CODE';
14+
const TYPE_COMMENT = 'COMMENT';
1415
const TYPE_DIVISION = 'DIVISION';
1516
const TYPE_HEADING = 'HEADING';
1617
const TYPE_UNORDERED_LIST = 'UNORDERED_LIST';
1718
const TYPE_ORDERED_LIST = 'ORDERED_LIST';
1819
const TYPE_LIST_ITEM = 'LIST_ITEM';
1920
const TYPE_PARAGRAPH = 'PARAGRAPH';
2021
const TYPE_QUOTE = 'QUOTE';
21-
const TYPE_HTML = 'HTML';
2222

2323
}

src/Common/ContentType.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
*
88
* @package Markdom\Common
99
*/
10-
final class ContentType
10+
class ContentType
1111
{
1212

1313
const TYPE_CODE = 'CODE';
@@ -16,6 +16,5 @@ final class ContentType
1616
const TYPE_LINE_BREAK = 'LINE_BREAK';
1717
const TYPE_LINK = 'LINK';
1818
const TYPE_TEXT = 'TEXT';
19-
const TYPE_HTML = 'HTML';
2019

2120
}

src/HandlerInterface/HandlerInterface.php

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,12 @@ public function onBlockBegin($type);
3838
*/
3939
public function onCodeBlock($code, $hint = null);
4040

41+
/**
42+
* @param $comment
43+
* @return void
44+
*/
45+
public function onCommentBlock($comment);
46+
4147
/**
4248
* @return void
4349
*/

0 commit comments

Comments
 (0)