CurseForge

2725 - Ticket markup ignored and broken

See for example
http://wow.curseforge.com/addons/rsa/tickets/33-print_channel-announcement-check-faulty-logic/
which contained a code block.

Choosing "BBCode" as the markup and using [code]...[/code] tags failed, because the tags were changed into "**code**", which then didn't get parsed as valid BBCode.  Why it's trying to rewrite that, I don't know.

Choosing "WikiCreole" as the markup type, and then using the tags produced by clicking the little gear wheel (something like <<code lua>> iirc) got the tags rewritten AND ignored again.

This works fine on the wowace tickets.  What is so different about curseforge?

User When Change
Torhal Jul 24, 2013 at 19:43 UTC
Torhal Nov 09, 2011 at 17:44 UTC
Torhal Jun 03, 2011 at 17:03 UTC Changed assigned to from Kaelten to prencher
Farmbuyer Feb 09, 2011 at 05:35 UTC Create

You must login to post a comment. Don't have an account? Register to get one!

  • 3 comments
  • Avatar of Brettflan Brettflan Oct 07, 2011 at 10:27 UTC - 0 likes

    I should also mention that a somewhat crappy workaround is available: use Markdown as your Markup type.

    Of course it would be better if WikiCreole weren't broken in this way forcing the use of Markdown for most code examples, but there you have it.

    EDIT: hope you guys don't mind, but I went ahead created another ticket for this problem with the appropriate "mark-up" Component selected and a better title and descriptive post:
    http://www.curseforge.com/projects/curseforge/tickets/2898-wiki-creole-code-block-handling-is-too-fragile/

    Last edited Oct 15, 2011 by Brettflan: adding link to related ticket
  • Avatar of Brettflan Brettflan Oct 07, 2011 at 05:01 UTC - 0 likes

    The code block handling seems to be very fragile, apparently no matter which markup you choose. For example, this is a very simple and basic code block which fails to parse correctly in WikiCreole, as you can see:

    <<code>># Testing blah blah

    1. More testing<</code>>


    Each line of code above starts with a "#", commonly used in many scripting languages to denote a comment line, and yet WikiCreole ignores the code block and parses the contents. Yet if you remove the "#" from each line, it parses fine. The same block as above with those removed:

     Testing blah blah
     More testing
    


    It even breaks when you simply have a blank line in the code block, like so:

    <<code>>doSomething();

    doSomethingElse();<</code>>


    Here's the same code block without the extra blank line, which works fine:

    doSomething();
    doSomethingElse();
    

    Takeaway: the code block handling for WikiCreole is essentially broken.

  • Avatar of Invinciblor Invinciblor Feb 13, 2011 at 08:07 UTC - 0 likes

    I can't offer an explanation, but this bit of info may help:

    Quote:

    Note: Our BBCode implementation is a thin wrapper around WikiCreole. The BBCode tags are converted to WikiCreole, and then that parser is used.

    http://kb.curseforge.com/markup-types/

  • 3 comments

Facts

Last updated
Jul 24, 2013
Reported
Feb 09, 2011
Status
Declined - We decided not to take action on this ticket.
Type
Defect - A shortcoming, fault, or imperfection
Priority
Medium - Normal priority.
Votes
1

Reported by

Possible assignees