summaryrefslogtreecommitdiffstats
path: root/md_tw.py
Commit message (Collapse)AuthorAgeFilesLines
* md_tw.py: Add TWBlockLexer.parse_block_quote.rsiddharth2018-01-021-0/+21
| | | | | | | | | * md_tw.py (TWBlockLexer.parse_block_quote): New method. (TWBlockLexer.__init__): Update method. * tests/test_md_tw.py (TestTWBlockLexer.test_parse_block_quote): New test. * tests/data/blexer-blockquote.md: New file.
* md_tw.py: Add TWBlockLexer._process_list_item.rsiddharth2018-01-021-0/+54
| | | | | | | | * md_tw.py (TWBlockLexer._process_list_item): New method * tests/test_md_tw.py (TestTWBlockLexer.test_parse_list_block): New test. * tests/data/blexer-lists.md: New file.
* md_tw.py: Add TWBlockLexer.parse_hrule.rsiddharth2018-01-021-0/+6
| | | | | | | | * md_tw.py (TWBlockLexer.parse_hrule): New method * tests/test_md_tw.py (TestTWBlockLexer.test_parse_hrule): New test. * tests/data/blexer-hrules.md: New file.
* md_tw.py: Add TWBlockLexer.parse_lheading.rsiddharth2018-01-021-0/+8
| | | | | | | | * md_tw.py (TWBlockLexer.parse_lheading): New method. * tests/test_md_tw.py (TestTWBlockLexer.test_parse_lheading): New method. * tests/data/blexer-lheading.md: New file.
* md_tw: Add TWBlockLexer.parse_heading.rsiddharth2018-01-021-0/+7
| | | | | | | | * md_tw.py (TWBlockLexer.parse_heading): New method. * tests/data/blexer-heading.md: New file. * tests/test_md_tw.py (TestTWBlockLexer.test_parse_heading): New test.
* md_tw.py: Add `TWBlockLexer.parse_fences`.rsiddharth2018-01-021-0/+7
| | | | | | * md_tw.py (TWBlockLexer.parse_fences): New method. * tests/data/blexer-fences.md: New file. * tests/test_md_tw.py (test_parse_fences): New test.
* md_tw.py: Add `TWBlockLexer.parse_block_code`.rsiddharth2018-01-021-0/+7
| | | | | | | | | | * 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.
* md_tw.py: Add TWBlockLexer._keyify.rsiddharth2018-01-021-0/+8
| | | | | | * md_tw.py (TWBlockLexer._keyify): New private method. (TWBlockLexer.__init__): Update method.
* md_tw: Update `TWBlockLexer.__init__`.rsiddharth2018-01-021-1/+0
| | | | | | | * md_tw.py (__init__): Remove default_rules. * tests/test_md_tw.py (test_default_rules_contents): Remove method.
* md_tw.py: `from mistune import ...` -> `import mistune`rsiddharth2018-01-021-6/+6
| | | | | | | | * md_tw.py (TWBlockLexer): Inherit from mistune.BlockLexer. (TWInlineLexer): Inherit from mistune.InlineLexer. (TWRenderer): Inherit from mistune.Renderer. (TWMarkdown): Inherit from mistune.Markdown.
* md_tw.py: Add Text Wrap classes (derived from mistune' classes).rsiddharth2017-07-241-0/+91
| | | | | | | | | | | | * md_tw.py (TWBlockLexer, TWInlineLexer, TWRenderer) (TWMarkdown): New classes. * tests/data/paragraphs-with-inline-wrapped.md: New file. * tests/data/paragraphs-with-inline.md: New file. * tests/data/paragraphs-wrapped.md: New file. * tests/data/paragraphs.md: New file. * tests/test_md_tw.py (TestTWBlockLexer, TestTWInlineLexer, TestTWRenderer, TestTWMarkdown) (TestTextWrapParagraphs): New test classes.
* Initial commit.rsiddharth2017-07-161-0/+22
* .gitignore: New file. * CONTRIBUTORS: New file. * COPYING: New file. * HACKING.rst: New file. * Makefile: New file. * README.rst: New file. * markdown_textwrap/__init__.py: New file. * markdown_textwrap/_version.py: New file. * md_tw.py: New file. * requirements.txt: New file. * setup.py: New file. * tests/__init__.py: New file. * tests/test_md_tw.py: New file.