summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* md_tw.py: TWRenderer.paragraph.rsiddharth2018-04-011-1/+1
| | | | | | | | | | | Don't append rstripped prefix. The rstripped prefix was appended before to render paragraphs correctly inside a blockquote. The blockquote rendering was updated to handle this; therefore paragraph rendering should not concern itself with this now. * md_tw.py (TWRenderer.paragraph): Update method.
* md_tw.py: Update TWMarkdown.output_block_quote.rsiddharth2018-04-015-2/+101
| | | | | | | | | | | Add subsequent indent text to all 'block' tokens inside block quote. * md_tw.py (TWMarkdown.output_block_quote): Update method. (TWRenderer.block_quote): Update method. * tests/data/renderer-block-quote-w.md: New file. * tests/data/renderer-block-quote.md: New file. * tests/data/renderer-fences-w.md: Update file. * tests/test_md_tw.py (test_render_block-_quote): New test.
* md_tw.py: Add TWMarkdown.output_heading.rsiddharth2018-04-013-0/+16
| | | | | | | | Add prefix, if it exists, to heading. * md_tw.py (TWMarkdown.output_heading): Override super class's method. * tests/data/renderer-heading-w.md: Update file. * tests/data/renderer-heading.md: Update file.
* md_tw.py: Update TWRenderer.block_code.rsiddharth2018-04-012-2/+2
| | | | | | | Don't add prefix for empty lines. * markdown_textwrap/_version.py (__version__): Update variable. * md_tw.py (TWRenderer.block_code): Update method.
* Bump to version 0.1.1.v0.1.1rsiddharth2018-03-271-1/+1
| | | | * markdown_textwrap/_version.py (__versionn__): Update variable.
* README.rst: Fix repo url.rsiddharth2018-03-271-1/+1
|
* Bump to version 0.1.0.v0.1.0rsiddharth2018-03-251-1/+1
| | | | * markdown_textwrap/_version.py (__version__): Update variable.
* Update README.rst.rsiddharth2018-03-251-0/+53
|
* md_tw.py: Update main.rsiddharth2018-03-251-1/+32
| | | | * md_tw.py (main): Update function.
* tests: Add TestTWRenderer.test_render_footnote_item.rsiddharth2018-03-053-1/+54
| | | | | | | * tests/data/renderer-footnotes-w.md: New file. * tests/data/renderer-footnotes.md: New file. * tests/test_md_tw.py (TestTWRenderer) [test_render_footnote_item]: New test method.
* md_tw.py: Add TWMarkdown.output_footnote.rsiddharth2018-03-051-0/+47
| | | | * md_tw.py (TWMarkdown)[output_footnote]: New method.
* md_tw.py: Add TWRenderer.footnote_item.rsiddharth2018-03-051-0/+4
| | | | * md_tw.py (TWRenderer)[footnote_item]: New method.
* md_tw.py: Update TWBlockLexer.parse_def_footnotes.rsiddharth2018-03-051-1/+1
| | | | * md_tw.py (TWBlockLexer)[parse_def_footnotes]: Don't keyify key.
* md_tw.py: Update TWRenderer.block_quote.rsiddharth2018-03-051-1/+1
| | | | * md_tw.py (TWRenderer)[block_quote]: Append newline to out.
* md_tw.py: Update TWRenderer.paragraph.rsiddharth2018-03-051-5/+6
| | | | * md_tw.py (TWRenderer)[paragraph]: Update method.
* md_tw.py: Fix TWInlineLexer docstring.rsiddharth2018-03-051-3/+1
|
* tests: Add TestTWRenderer.test_render_def_link.rsiddharth2018-02-263-0/+73
| | | | | | * tests/data/renderer-def-links-w.md: New file. * tests/data/renderer-def-links.md: New file. * tests/test_md_tw.py (test_render_def_link): New test method.
* md_tw.py: Add TWMarkdown.output_def_linkrsiddharth2018-02-261-0/+3
| | | | * md_tw.py (TWMarkdown)[output_def_link]: New method.
* md_tw.py: Ad TWRenderer.def_link.rsiddharth2018-02-261-3/+4
| | | | * md_tw.py (TWRenderer)[def_link]: New method.
* md_tw.py: [token] def_links -> def_linkrsiddharth2018-02-262-3/+3
| | | | | | * md_tw.py (TWBlockLexer)[parse_def_links]: Update method. * tests/test_md_tw.py (TWBlockLexer)[test_parse_def_link]: New test method. [test_parse_def_links]: Remove test method.
* tests: Add TestTWRenderer.test_render_hrule.rsiddharth2018-02-253-0/+43
| | | | | | * tests/data/renderer-hrules-w.md: New file. * tests/data/renderer-hrules.md: New file. * tests/test_md_tw.p (TestTWRenderer)[test_render_hrule]: New test method.
* md_tw.py: Add TWMarkdown.output_hrule.rsiddharth2018-02-251-0/+3
| | | | * md_tw.py (TWMarkdown)[output_hrule]: New method.
* md_tw.py: TWRenderer.hrule.rsiddharth2018-02-251-0/+4
| | | | * md_tw.py (TWRenderer)[hrule]: New method.
* tests: Add test_render_header.rsiddharth2018-02-255-0/+57
| | | | | | | | * tests/data/renderer-heading-w.md: New file. * tests/data/renderer-heading.md: New file. * tests/data/renderer-lheading-w.md: New file. * tests/data/renderer-lheading.md: New file. * tests/test_md_tw.py (test_render_header): New test method.
* md_tw.py: Add TWRenderer.header.rsiddharth2018-02-251-0/+7
| | | | * md_tw.py (TWRenderer)[header]: New method.
* tests: Add TestTWRenderer.test_render_list.rsiddharth2018-02-243-0/+135
| | | | | | * tests/data/renderer-lists-w.md: New file. * tests/data/renderer-lists.md: New file. * tests/test_md_tw.py (test_render_list): New test method.
* md_tw.py: Update TWMarkdown.output_list_item.rsiddharth2018-02-241-0/+9
| | | | | | Set width beforing rendering item. * md_tw.py (TWMarkdown)[output_list_item]: Update function.
* md_tw.py: Update TWMarkdown.output_loose_item.rsiddharth2018-02-241-9/+7
| | | | | | Refactor indenting. * md_tw.py (TWMarkdown)[output_loose_item]: Update method.
* tests: Add TestTWRenderer.teardown_class.rsiddharth2018-02-241-0/+4
| | | | | * tests/test_md_tw.py (TestTWRenderer)[teardown_class]: New method. [teardown]: Update method.
* tests: Add TestTWRenderer.setup_class.rsiddharth2018-02-241-4/+6
| | | | | * tests/test_md_tw.py (TestTWRenderer)[setup_class]: New method. [setup]: Update method.
* md_tw.py: Update TWMarkdown.output_loose_item.rsiddharth2018-02-241-0/+9
| | | | | | Set width before rendering item. * md_tw.py (TWMarkdown)[output_loose_item]: Update method.
* md_tw.py: Update TWMarkdown.output_list_item.rsiddharth2018-02-241-9/+7
| | | | * md_tw.py (TWMarkdown)[output_list_item]: Update method.
* md_tw.py: Update TWBlockLexer._process_list_item.rsiddharth2018-02-191-0/+1
| | | | * md_tw.py (TWBlockLexer)[_process_list_item]: Update method.
* md_tw.py: Add TWMarkdown.output_loose_item.rsiddharth2018-02-191-0/+35
| | | | * md_tw.py (TWMarkdown)[output_loose_item]: New method.
* md_tw.py: Add TWMarkdown.output_list_item.rsiddharth2018-02-191-0/+41
| | | | * md_tw.py (TWMarkdown)[output_list_item]: New method.
* md_tw.py: Update TWMarkdown.output_block_quote.rsiddharth2018-02-191-7/+3
| | | | * md_tw.py (TWMarkdown)[output_block_quote]: Update method.
* md_tw.py: Add TWMarkdown._remove_prefix.rsiddharth2018-02-191-0/+8
| | | | * md_tw.py (TWMarkdown)[_remove_prefix]: New method.
* md_tw.py: Add TWMarkdown._add_prefix.rsiddharth2018-02-191-0/+7
| | | | * md_tw.py (TWMarkdown)[_add_prefix]: New method.
* md_tw.py: Rename TWRenderer._tw_fill.rsiddharth2018-02-191-2/+2
| | | | | | * md_tw.py (TWRenderer)[_tw_fill]: Remove method. [tw_fill]: New method. [paragraph]: Update method.
* md_tw.py: Add TWRenderer.listrsiddharth2018-02-191-0/+4
| | | | * md_tw.py (TWRenderer)[list]: New method.
* md_tw.py: Add TWRenderer.list_item.rsiddharth2018-02-191-0/+5
| | | | * md_tw.py (TWRenderer)[list_item]: New method.
* tests: Add TestTWRenderer.test_render_block_html.rsiddharth2018-02-183-0/+50
| | | | | | * tests/data/renderer-block-html-w.md: New file. * tests/data/renderer-block-html.md: New file. * tests/test_md_tw.py (test_render_block_html): New test method.
* md_tw.py: Add TWMarkdown.output_block_html.rsiddharth2018-02-181-0/+4
| | | | * md_tw.py (TWMarkdown)[output_block_html]: New method.
* md_tw.py: Add TWRenderer.block_html.rsiddharth2018-02-181-0/+6
| | | | * md_tw.py (TWRenderer)[block_html]: New method.
* md_tw.py: Add TWBlockLexer.parse_block_html.rsiddharth2018-02-182-23/+14
| | | | | | * md_tw.py (TWBlockLexer)[parse_block_html]: New method. * tests/test_md_tw.py (TestTWBlockLexer) [test_parse_block_html]: Update test method.
* tests: Update TestTWRenderer.test_render_block_code.rsiddharth2018-02-183-0/+31
| | | | | | * tests/data/renderer-fences-w.md: New file. * tests/data/renderer-fences.md: New file. * tests/test_md_tw.py (test_render_block_code): Update test method.
* tests: Add TestTWRenderer.test_render_block_code.rsiddharth2018-02-183-0/+26
| | | | | | | * tests/data/renderer-block-code-w.md: New file. * tests/data/renderer-block-code.md: New file. * tests/test_md_tw.py (TestTWRenderer) [test_render_block_code]: New test method.
* md_tw.py: Add TWMarkdown.output_block_quote.rsiddharth2018-02-181-0/+17
| | | | * md_tw.py (TWMarkdown)[output_block_quote]: New method.
* md_tw.py: Add TWMarkdown._client_ts.rsiddharth2018-02-181-0/+11
| | | | | * md_tw.py (TWMarkdown)[_client_ts]: New method. [parse]: Update method.
* md_tw.py: Add TWRenderer.block_quote.rsiddharth2018-02-181-0/+4
| | | | * md_tw.py (TWRenderer)[block_quote]: New method.