Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Markdown support #3

Closed
wants to merge 9 commits into from
Closed

Add Markdown support #3

wants to merge 9 commits into from

Commits on Jul 29, 2016

  1. Add Markdown support

    Fixes: pypaGH-1
    msabramo committed Jul 29, 2016
    Copy the full SHA
    4661701 View commit details
    Browse the repository at this point in the history
  2. Add support for markdown.extensions.fenced_code

    Allows GitHub-style backtick syntax for code -- e.g.:
    
        ```python
        import os
    
        def add(a, b):
            return a + b
        ```
    msabramo committed Jul 29, 2016
    Copy the full SHA
    477fb1a View commit details
    Browse the repository at this point in the history
  3. Add support for markdown.extensions.smart_strong

    Allows markup like:
    
        Text with double__underscore__words.
    
    And it will render the double underscores within the words instead of
    taking them to mean to format as strong.
    msabramo committed Jul 29, 2016
    Copy the full SHA
    9075696 View commit details
    Browse the repository at this point in the history
  4. Copy the full SHA
    a2146e3 View commit details
    Browse the repository at this point in the history
  5. Copy the full SHA
    278d3f5 View commit details
    Browse the repository at this point in the history
  6. test_github_backtick_syntax_for_code: Use files

    Solves PEP 8 line too long errors
    msabramo committed Jul 29, 2016
    Copy the full SHA
    bb91f67 View commit details
    Browse the repository at this point in the history
  7. Fix test failure

    Fixes the following test failure (e.g.:
    https://travis-ci.org/pypa/readme_renderer/jobs/148390785):
    
    ```
            if "<" in expected:
    >           assert out == expected
    E           assert '<p>Here is s...nkey</a></p>\n' == '<p>Here is so...nkey</a></p>\n'
    E             Skipping 734 identical leading characters in diff, use -v to show
    E             - n class="s1">'Ruff!'</span><span class="p">)</span>
    E             ?           -
    E             + n class="s">'Ruff!'</span><span class="p">)</span>
    E
    E             - <span class="n">dog</span> <span class="o">=</span> <span class="n">Dog</span><span class="p">(</span><span class="s1">'Fido'</span><span class="p">)</span>
    E             ?                                                                                                                     -
    E             + <span class="n">dog</span> <span class="o">=</span> <span class="n">Dog</span><span class="p">(</span><span class="s">'Fido'</span><span class="p">)</span>
    E               </pre>
    E             Detailed information truncated (6 more lines), use "-vv" to show
    
    tests/test_rst.py:31: AssertionError
    ```
    msabramo committed Jul 29, 2016
    Copy the full SHA
    0c19023 View commit details
    Browse the repository at this point in the history
  8. Copy the full SHA
    fac5ef3 View commit details
    Browse the repository at this point in the history
  9. Update expected HTML for markdown tests

    I guess the output of [Markdown](https://pypi.python.org/pypi/Markdown)
    changed a bit?
    msabramo committed Jul 29, 2016
    Copy the full SHA
    264dbfd View commit details
    Browse the repository at this point in the history