From d9d4e31636da136be3a8dd60d507140e03c0cf6c Mon Sep 17 00:00:00 2001 From: rsiddharth Date: Tue, 2 Jan 2018 00:34:32 +0000 Subject: md_tw.py: Add `TWBlockLexer.parse_block_code`. * md_tw.py (TWBlockLexer.parse_block_code): New method. * tests/test_md_tw.py (TestTWBlockLexer._parse) (TestTWBlockLexer._validate): New private methods. (TestTWBlockLexer.test_parse_block_code): New test. * tests/data/blexer-block-code.md: New file. --- tests/data/blexer-block-code.md | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 tests/data/blexer-block-code.md (limited to 'tests/data') diff --git a/tests/data/blexer-block-code.md b/tests/data/blexer-block-code.md new file mode 100644 index 0000000..711763a --- /dev/null +++ b/tests/data/blexer-block-code.md @@ -0,0 +1,10 @@ +Let's have some chaos: + + $ echo 'Zap!' + $ rm -rf / + +> Some Jaromil art inside a block quote +> +> $ :(){:|:&};: +> +> For more look at jaramil.dyne.org. He's awesome. -- cgit v1.2.3