• 
      

    Add all our specialized Markdown rendering/processing to Djblets.

    Review Request #7316 — Created May 18, 2015 and submitted

    Information

    Djblets
    release-0.9.x
    465833d...

    Reviewers

    We had a bunch of useful and complex code in Review Board to
    render/style Markdown files in a more WYSIWYG-ish format (matching the
    output styles/spacing to the input), generate e-mails with Markdown
    styles inlined, escape/unescape content for Markdown rendering, and
    perform other types of processing.

    This isn't specific to Review Board, and would be very nice to reuse, so
    it's now in Djblets. The utility functions live in the new
    djblets.markdown module, with extensions living in
    djblets.markdown.extensions.wysiwyg and
    djblets.markdown.extensions.wysiwyg_email.

    The styles for rendering the Markdown content lives in a new mixin,
    which can be injected into any CSS rule the consuming project chooses.

    Unit tests pass.

    Tested that all the new stuff works with Review Board still (after moving over to this).

    Description From Last Updated

    'mark_safe' imported but unused

    reviewbotreviewbot

    'Extension' imported but unused

    reviewbotreviewbot

    'markdown_unescape' imported but unused

    reviewbotreviewbot
    reviewbot
    1. Tool: Pyflakes
      Processed Files:
          djblets/markdown/__init__.py
          djblets/markdown/extensions/wysiwyg.py
          djblets/markdown/tests.py
          djblets/markdown/extensions/wysiwyg_email.py
      
      Ignored Files:
          README
          djblets/markdown/extensions/__init__.py
          djblets/static/djblets/css/mixins/markdown.less
      
      
      
      Tool: PEP8 Style Checker
      Processed Files:
          djblets/markdown/__init__.py
          djblets/markdown/extensions/wysiwyg.py
          djblets/markdown/tests.py
          djblets/markdown/extensions/wysiwyg_email.py
      
      Ignored Files:
          README
          djblets/markdown/extensions/__init__.py
          djblets/static/djblets/css/mixins/markdown.less
      
      
    2. Show all issues
       'mark_safe' imported but unused
      
    3. Show all issues
       'Extension' imported but unused
      
    4. Show all issues
       'markdown_unescape' imported but unused
      
    5. 
        
    david
    1. Ship It!
    2. 
        
    chipx86
    Review request changed
    Status:
    Completed
    Change Summary:
    Pushed to release-0.9.x (16a18b2)