Default quoting behaviour cannot quote code.



  • Continuing the discussion from Metabug: Runaway bot:

    @faoileag said:

    ````
    package test;

    public class paulaBean {

    private paulaBean bean = new paulaBean();

    private String paula = "Brillant";

    public String getPaula() {
    return paula;
    }
    }

    
    -----
    As pointed out [here][1].
    
    
    The above is the result of just clicking "Reply as new Topic" on the linked post. 
    
    Messing around with it I can't see how to easily fix it...
    
    
      [1]: http://what.thedailywtf.com/t/metabug-runaway-bot/793/9?u=pjh


  • Best I can do to get somewhat close to desired state:

    @faoileag said:

    >```

    package test;

    public class paulaBean {

    private paulaBean bean = new paulaBean();

    private String paula = "Brillant";

    public String getPaula() {
    return paula;
    }
    }


  • Banned

    This is as-designed at the moment -- quotes and oneboxes don't carry formatting, other than hyperlinks.


  • Winner of the 2016 Presidential Election

    It's designed so the quote tags are visible and don't work? I... don't even know how to respond to that.


    Filed under: Discourse: broken by design


  • Banned

    Quotes, as designed, are supposed to be essentially plain text (prior to expansion, which pulls in the full, formatted quote). Mainly this is to avoid complexities around embedded formatting.


  • Winner of the 2016 Presidential Election

    @codinghorror said:

    Quotes, as designed, are supposed to be essentially plain text (prior to expansion, which pulls in the full, formatted quote). Mainly this is to avoid complexities around embedded formatting.

    I can accept that, but in this case those the quote is totally broken. And apparently it's meant to be.

    Expected: the quote displays without formatting (better to show it with formatting, but it's too hard I guess)
    Actual: the quote is not displayed



  • Testing...

    Inline:

    text `code` text

    Block:

    @fatbull said:

    ```
    code

    
    Adding a blank line:
    
    @fatbull said:<blockquote>```
    code
    ```</blockquote>
    
    Adding text:
    
    @fatbull said:<blockquote>text
    
    

    code

    
    Adding more code:
    
    @fatbull said:<blockquote>text
    
    

    code

    code



    1. Inline code works, but should not according to @codinghorror's comment above.
    2. Quoted code blocks don't work, but that was expected.
    3. A blank line magically "fixes" the code, but cuts the quote in half.
    4. A line of text "fixes" that again, but adds gibberish where my avatar should be.
    5. Somehow another line of code makes it even worse.

    Here's a screenshot of the post's source, preview, and result:


    Filed under: Markdown: 1, Sanity: 0



  • What about this:

    @fatbull said:

    >```

    type Bool bool

    func (b Bool) String() string {
    return "FILE_NOT_FOUND"
    }


  • Banned

    This is something we will come back to after V1, but right now, the intention is for quotes to be almost exclusively plain text. Obviously links work in quotes.. but quotes are not designed to carry formatting beyond the most basic kind.


  • Banned


Log in to reply
 

Looks like your connection to What the Daily WTF? was lost, please wait while we try to reconnect.