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

Markdown #51

Closed
wants to merge 16 commits into from
Closed

Markdown #51

wants to merge 16 commits into from

Commits on Jul 29, 2016

  1. Add Markdown support

    Fixes: GH-1
    msabramo committed Jul 29, 2016
    Configuration menu
    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
    Configuration menu
    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
    Configuration menu
    Copy the full SHA
    9075696 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    a2146e3 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    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
    Configuration menu
    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
    Configuration menu
    Copy the full SHA
    0c19023 View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    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
    Configuration menu
    Copy the full SHA
    264dbfd View commit details
    Browse the repository at this point in the history

Commits on Apr 27, 2017

  1. Configuration menu
    Copy the full SHA
    b44841b View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    a453383 View commit details
    Browse the repository at this point in the history
  3. Markdown: Make markdown.render() and rst.render() signature match.

    Also, the only case bool(markdown.markdown(?)) can give False looks
    like when given an empty string, itself returning and empty string.
    
    However, on very unparsable case, markdown.markdown() can raise a
    ValueError, let's catch it so we can fallback later on txt rendering.
    JulienPalard committed Apr 27, 2017
    Configuration menu
    Copy the full SHA
    1f80f19 View commit details
    Browse the repository at this point in the history
  4. Markdown: Add a readme_renderer.any.render(raw)

    This allow to replace occurrences of:
    
        description_html = readme_renderer.rst.render(release["description"])
        if description_html is None:
            description_html = readme_renderer.txt.render(release["description"])
        release["description_html"] = description_html
    
    to simply:
    
        release["description_html"] = readme_renderer.any.render(release["description"])
    
    And gaining rendring or Markdown.
    JulienPalard committed Apr 27, 2017
    Configuration menu
    Copy the full SHA
    199096a View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    0fd19b1 View commit details
    Browse the repository at this point in the history

Commits on Apr 28, 2017

  1. Configuration menu
    Copy the full SHA
    9481730 View commit details
    Browse the repository at this point in the history

Commits on Jul 2, 2017

  1. Configuration menu
    Copy the full SHA
    0dd7f3b View commit details
    Browse the repository at this point in the history