#1117 Strange rendering words with dash in XML in Wiki (SF 2.0) [14975]

unreleased
invalid
sf-2 (994)
Wiki
nobody
2011-03-23
2010-11-04
Chris Tsai
No

https://sourceforge.net/apps/trac/sourceforge/ticket/14975

Using Markdown Wiki in SF 2.0 words with dash are strange rendered. For example effect of:

<build-number>${BUILD_NUMBER}</build-number>

is the first "-Number" in red square.

See:
https://sourceforge.net/p/appinfo/home/
(or attached screenshot)

I tried finding a reason for this in the Markdown syntax, but I couldn't find anything, any explanation or way to workaround this?

Discussion

  • Rick Copeland - 2010-11-30
    • custom_field__milestone: --> backlog
     
  • Rick Copeland - 2011-01-24
    • size: --> 1
     
  • John Hoffman - 2011-02-14
    • assigned_to: John Hoffmann
     
  • John Hoffman - 2011-02-14

    We use Python's [http://www.freewisdom.org/projects/python-markdown/ Markdown] and the [http://www.freewisdom.org/projects/python-markdown/CodeHilite CodeHilite] extension, which in turn uses [http://pygments.org/ Pygments] to highlight code blocks.

    The problem appears to be that Pygments cannot correctly guess which language parser to use on your code blocks, so in this case I would suggest forcing the language type, by prepending the block with :::language, i.e.

    <xml-bar>
        <data>foo</data>
    </xml-bar>
    

    If you have any questions, please let me know.

     
  • John Hoffman - 2011-02-14

    The markdown syntax help docs already have the correct section on code hi-lighting.

     
  • John Hoffman - 2011-02-14
    • status: open --> invalid
     

Log in to post a comment.