aboutsummaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Fix hr recursion issue (#535)Isaac Muse2017-01-233-2/+18
| | | | | | | 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-205-10/+42
| | | | | 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-195-30/+172
| | | | | | | 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-113-41/+102
| | | | 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)
* Fix aspell silently failing (#523)Isaac Muse2017-01-111-0/+1
| | | Travis should checkout aspell-en (issue #521)
* command line (#517)Ben Petty2016-12-231-1/+1
| | | add . before `codehilite` to generate a proper css output (to reference the codehilite class)
* Spelling error (#516)Ben Petty2016-12-231-1/+1
| | | should say `pygmentize` not `pygmetize` on line 50
* Add blank lines after toplevel function definitions.Dmitry Shachnev2016-11-184-0/+5
| | | | This fixes warnings with pycodestyle ≥ 2.1, see PyCQA/pycodestyle#400.
* Fox formatting of extension_configs example.Waylan Limberg2016-11-171-7/+3
| | | Fixes #511. Thanks to @omiday for the report.
* lists are not tables - fixes #478 (#507)Adam Wood2016-10-263-4/+15
|
* 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-232-1/+3
|
* No need to test the same thing twice.Waylan Limberg2016-09-232-5/+2
| | | | Related to #498.
* Merge branch 'master' of https://github.com/waylan/Python-MarkdownWaylan Limberg2016-09-238-11/+21
|\
| * Fix table alignment when seperator contains spaces (#489)eph2016-08-152-4/+5
| | | | | | | | | | | | | | | | | | | | * Fix table alignment when seperator contains spaces eg. seperator like "------ | :----- | :----: | -----: | ------" * Update tests for table * Delete the newline at the end of tables.html
| * Merge pull request #485 from facelessuser/masterWaylan Limberg2016-07-263-3/+9
| |\ | | | | | | Fix image titles not following spec
| | * Fix image titles not following specfacelessuser2016-07-263-3/+9
| |/ | | | | | | | | 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.
| * Merge pull request #483 from mitya57/masterWaylan Limberg2016-06-133-3/+6
| |\ | | | | | | Fix another issue with attribute lists (with multiple ‘=’ signs)
| | * Fix another issue with attribute lists (with multiple ‘=’ signs)Dmitry Shachnev2016-06-133-3/+6
| |/
* | Don't allow equal signs in attr_list keys.Waylan Limberg2016-09-233-4/+7
| | | | | | | | | | | | 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.
* | Fix a few spelling errors.Waylan Limberg2016-09-231-3/+3
|/
* Attribute lists are not permitted to contain newlines. Fixes #482.Waylan Limberg2016-06-123-2/+6
|
* Additional improvements to Codehilite docs. Addesses concerns raised in #480.Waylan Limberg2016-06-061-18/+45
|
* Merge pull request #480 from krother/patch-1Waylan Limberg2016-06-061-8/+15
|\ | | | | edited setup docs for CodeHilite with Pygments
| * added instructions for CodeHilite with PygmentsKristian Rother2016-06-061-8/+15
|/ | | Improved the setup documentation when rendering Python code with Pygments and CodeHilite. Added a link to the Pygments CSS files and emphasized that not installing pygments does not cause an error message.
* Merge pull request #478 from adamchainz/readthedocs.ioWaylan Limberg2016-05-293-4/+4
|\ | | | | Convert readthedocs link for their .org -> .io migration for hosted projects
| * Convert readthedocs link for their .org -> .io migration for hosted projectsAdam Chainz2016-05-293-4/+4
|/ | | | | | | | 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.
* Added version 2.6.6 to change log.Waylan Limberg2016-05-251-0/+2
| | | Fixes #475.
* Merge pull request #476 from adamchainz/readme_link_changelogWaylan Limberg2016-05-081-0/+2
|\ | | | | README - add link to changelog
| * README - add link to changelogAdam Chainz2016-05-081-0/+2
|/ | | | Fixes #474. Makes it a bit easier to find the changelog.
* Merge branch 'master' of https://github.com/waylan/Python-MarkdownWaylan Limberg2016-04-113-2/+15
|\
| * Merge pull request #469 from martinmo/fenced-code-no-pygmentsWaylan Limberg2016-04-112-0/+13
| |\ | | | | | | Support CodeHilite option use_pygments in fenced_code
| | * Support CodeHilite option use_pygments in fenced_codeMartin Morgenstern2016-04-111-0/+1
| | |
| | * Test if fenced_code honors CodeHilite option use_pygmentsMartin Morgenstern2016-04-111-0/+12
| |/
| * Merge pull request #466 from sblondon/masterWaylan Limberg2016-03-301-2/+2
| |\ | | | | | | Fix lazy ordered list example in documentation
| | * Fix lazy ordered list example in documentationsblondon2016-03-301-2/+2
| |/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | The documentation is not accurate when lazy_ol=False parameter is called. The example shows the 'start' attribute to the first <li> tag. However, the attribute is in the <ol> tag: >>> import markdown >>> s = """ ... 4. Apples ... 5. Oranges ... 6. Pears""" >>> markdown.markdown(s, lazy_ol=False) u'<ol start="4">\n<li>Apples</li>\n<li>Oranges</li>\n<li>Pears</li>\n</ol>' The behaviour of the library is the correct one (https://developer.mozilla.org/fr/docs/Web/HTML/Element/ol), so the documentation need to be fixed, not the library.
* / 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
|
* Merge pull request #462 from waylan/toc_bugWaylan Limberg2016-03-172-1/+74
|\ | | | | Toc bug
| * toc: Remove children from header element after iteratingDmitry Shachnev2016-03-171-1/+2
| | | | | | | | Removing items while iterating can result in wrong behavior. Refs #461.
| * Add single inline code toc testsStephan Groß2016-03-171-4/+33
| |
| * Add toc permalink testsStephan Groß2016-03-171-0/+28
| |
| * Add failing toc testStephan Groß2016-03-171-0/+15
|/
* Make TestCodeHilite work with Pygments ≥ 2.1.1Dmitry Shachnev2016-03-031-3/+3
| | | | | | | | New versions of Pygments insert <span></span> blocks in the beginning of the generated output sometimes [1], so we need to remove those blocks before doing the actual checking. [1]: https://bitbucket.org/birkenfeld/pygments-main/commits/164574c13533
* Fix for exceptions handling in HtmlOutput’s formatErr methodDmitry Shachnev2016-03-031-0/+2
| | | | | | | Now it should no longer print internal errors instead of intended ones on Python 3. Thanks to Maurice van der Pot for finding this fix.
* Added a few empty lines in the test to satisfy flake8Maurice van der Pot2016-02-271-0/+3
|