summaryrefslogtreecommitdiffstats
path: root/md_tw.py
Commit message (Collapse)AuthorAgeFilesLines
...
* 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.