aboutsummaryrefslogtreecommitdiffstats
path: root/markdown
Commit message (Collapse)AuthorAgeFilesLines
...
* Upped version to 2.6.9Waylan Limberg2017-08-171-1/+1
|
* fix DeprecationWarning: invalid escape sequenced9pouces2017-07-251-1/+1
|
* fix DeprecationWarning: invalid escape sequenced9pouces2017-07-252-4/+4
|
* Fix typo s/Goggle/Google/Tim Chase2017-06-031-1/+1
|
* Loosen whitespace requirements for admonitions.Waylan Limberg2017-03-051-2/+2
| | | | | | | Also consume to the end of the first line of any admonition. Everything after the title is discarded. However, the only thing that will match should be whitespace so it should be a non-issue. Fixes #550.
* Fix regression of single column tables (#540)Isaac Muse2017-01-261-9/+40
| | | | | | Single column tables are valid tables, so add back in the accidentally removed functionality of allowing single column tables, but with one exception -- table bodies should not render empty (an empty `<tbody>` is invalid HTML. Fixes #539.
* Upped version to 2.6.8.2.6.8-finalWaylan Limberg2017-01-251-1/+1
|
* Fix HTML parse with empty lines (#537)Isaac Muse2017-01-241-1/+7
| | | | | | | If both open and close was not found in first block, additional blocks were evaluated without context of previous blocks. The algorithm needs to evaluate a buffer with the left bracket present. So feed in all items and get the right bracket, then adjust the data_index to be relative to the last block. Fixes #452.
* Fix footnote parsing of footnote content (#536)Isaac Muse2017-01-231-13/+20
| | | | | | | Fixes #412 and #493. First we parse footnote content as its own document avoid quirks with using li as a parent. Second, we surround placeholders with STX and ETX to prevent them from interfering with inline parsing; this is also consistent with how placeholders are used everywhere else in Python Markdown.
* Create additional references for duplicate footnotes (#534)Isaac Muse2017-01-231-5/+93
| | | | | | Track when we find duplicate footnote references and create unique ids for them. Then add an additional tree-processor after inline to go back and update the footnotes with additional back references that link to the duplicate footnote references. Fixes #468.
* Fix hr recursion issue (#535)Isaac Muse2017-01-231-2/+3
| | | | | | | HRProcessor tried to access a member variable after recursively calling itself. In certain situations HRProcessor will try to access its member variable containing its match, but it will not be the same match that call in the stack expected. This is easily fixed by storing the match locally *before* doing any recursive work.
* Better inline code escaping (#533)Isaac Muse2017-01-201-5/+9
| | | | | This aims to escape code in a more expected fashion. This handles when backticks are escaped and when the escapes before backticks are escaped.
* Tables: Improvements (#530)Isaac Muse2017-01-192-29/+56
| | | | | | | Tables now handle escaped pipes when testing, in table borders, and in the inline content. To achieve properly, a bug had to be fixed related to appending escaped chars to the Markdown class. Now appended chars only appear in the current instance. Lastly the first backtick in a table can be escaped rounding out the last corner case.
* Update fenced code extension to match codehilite lang regex. (#529)Waylan Limberg2017-01-181-1/+1
| | | Related to #527.
* codehilite: detect languages with funny names (#527)Grant Mathews2017-01-171-1/+1
| | | Extend the language regex to match things like 'C#' and 'VB.Net'.
* Recognize <main> as an HTML5 block level tag. (#525)daniel-j-mac2017-01-171-1/+1
|
* Better handling of backticks in tables (#524)Isaac Muse2017-01-111-40/+62
| | | | At some point the logic of counting backticks and determining if they are odd or even was used to parse a row's text into cells. Unfortunately this approach broke expected code parsing logic in a table. We essentially traded one bug for another. This fixes table backtick handling and restores sane backtick logic while preserving existing fixes. (issue #449)
* Add blank lines after toplevel function definitions.Dmitry Shachnev2016-11-183-0/+3
| | | | This fixes warnings with pycodestyle ≥ 2.1, see PyCQA/pycodestyle#400.
* lists are not tables - fixes #478 (#507)Adam Wood2016-10-261-1/+2
|
* getiterator to iter (#501)Brandon Chinn2016-09-291-1/+1
|
* Replace `getiterator` function for Python 3.6 Brandon Chinn2016-09-291-2/+2
| | | | | | `getiterator` has been deprecated since Python 2.7, when `iter` was added. Fixes #499.
* Up version to 2.6.72.6.7-finalWaylan Limberg2016-09-231-1/+1
|
* Merge branch 'master' of https://github.com/waylan/Python-MarkdownWaylan Limberg2016-09-233-4/+5
|\
| * Fix table alignment when seperator contains spaces (#489)eph2016-08-151-0/+1
| | | | | | | | | | | | | | | | | | | | * Fix table alignment when seperator contains spaces eg. seperator like "------ | :----- | :----: | -----: | ------" * Update tests for table * Delete the newline at the end of tables.html
| * Fix image titles not following specfacelessuser2016-07-261-1/+1
| | | | | | | | | | Don’t allow spaces in image links. This was also causing an issue where any text following a space was treated as a title. Ref #484.
| * Fix another issue with attribute lists (with multiple ‘=’ signs)Dmitry Shachnev2016-06-131-3/+3
| |
* | Don't allow equal signs in attr_list keys.Waylan Limberg2016-09-231-3/+3
|/ | | | | | This will probably not result in the output intending by the author, but the syntax would be incorrect so the author needs to edit the document anyway. We just need to ensure the parser does not crash here. Fixes #498.
* Attribute lists are not permitted to contain newlines. Fixes #482.Waylan Limberg2016-06-121-1/+1
|
* Convert readthedocs link for their .org -> .io migration for hosted projectsAdam Chainz2016-05-291-1/+1
| | | | | | | | As per [their blog post of the 27th April](https://blog.readthedocs.com/securing-subdomains/) ‘Securing subdomains’: > Starting today, Read the Docs will start hosting projects from subdomains on the domain readthedocs.io, instead of on readthedocs.org. This change addresses some security concerns around site cookies while hosting user generated data on the same domain as our dashboard. Test Plan: Manually visited all the links I’ve modified.
* Merge branch 'master' of https://github.com/waylan/Python-MarkdownWaylan Limberg2016-04-111-0/+1
|\
| * Support CodeHilite option use_pygments in fenced_codeMartin Morgenstern2016-04-111-0/+1
| |
* | Remove unnessecary if statement.Waylan Limberg2016-04-111-5/+1
|/ | | | | | The statement will never evaluate False, so its not needed. Also, Unicode is not valid for PY3, so its better to not include it. Fixes #470.
* Upped version to 2.6.6.2.6.6-finalWaylan Limberg2016-03-201-1/+1
|
* toc: Remove children from header element after iteratingDmitry Shachnev2016-03-171-1/+2
| | | | Removing items while iterating can result in wrong behavior. Refs #461.
* Improve RawHtmlProcessor to have linear iso quadratic performanceMaurice van der Pot2016-02-261-7/+10
|
* Upped version to 2.6.5.2.6.5-finalWaylan Limberg2015-11-241-1/+1
|
* Fix handling of characters after backtick in tables.Dmitry Shachnev2015-11-071-1/+1
| | | | Fixes #440. Thanks @jandecaluwe for the bug report.
* Upped to version 2.6.4.2.6.4-finalWaylan Limberg2015-11-061-1/+1
|
* Ensure InlinePatterns don't drop newlines.Waylan Limberg2015-11-061-1/+1
| | | | | | Drppoed the non-greedy quantifier from the end of the inlinePatterns as it served no useful purpose and was actually (in very rare edge cases) causing newlines to be dropped. FIxes #439. Thanks to @munificent for the report.
* Upped to version 2.6.3.2.6.3-finalWaylan Limberg2015-10-261-1/+1
|
* Fixed handling of table cell splitMustafa Haddara2015-10-241-2/+49
|
* Fix infinite loop #430facelessuser2015-09-041-3/+4
| | | | | | | | | This should fix the remaining corner cases that can cause infinite loops. Previous iterations did not account for scenarios where the “end” index was less than the “start” index. If the “end” index is ever less than or equal to the “start” index, the “end” will be adjusted to to be “start” + 1 allow the full range to be extracted and replaced.
* Fix find footnote placeholder to recurseGustav Tiger2015-08-291-1/+3
|
* Override regex for html inline pattern when smart_angled_quotes is trueDmitry Shachnev2015-06-201-1/+6
| | | | | Add a restriction that the closing angled quote should not be duplicate, so that we can use our own pattern for handling duplicate quotes.
* Revert "smarty: Use a separate processor for angled quotes"Dmitry Shachnev2015-06-191-8/+4
| | | | | | | That commit caused a regression where `<<` and `>>` inside code blocks were wrongly replaced with double quotes. This reverts commit 5029d829c1532f31adc9acbf54d88bb469a69a4f.
* smarty: Use a separate processor for angled quotesDmitry Shachnev2015-06-151-4/+8
| | | | Run that processor before inline processor to fix the test failure.
* Updated BlockProcessor to new-style class. Changed subclasses to use super().Kar Epker2015-06-012-6/+6
|
* Changed formatting of regex strings. Fixed flake8 issues.Kar Epker2015-06-012-19/+10
|
* Changed line continuations to satisfy pylint.Kar Epker2015-06-012-14/+19
|
* Fixed parser ignoring value of tab_length.Kar Epker2015-06-012-9/+30
|