8

This question already has an answer here:

I recently noticed that when there are new-lines in the same chat message, Markdown support fails. For example:

*Test* 

**TEST**

This won't produce the expected output:

Test

TEST

It leaves the message as it is with the Markdown text included. Here's proof if needed. Is this , or a ?

marked as duplicate by syb0rg, animuson Jan 12 '14 at 19:19

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

  • So, is this worth fixing? – Robert Harvey Jan 12 '14 at 18:16
  • 1
    Reproed in the sandbox on meta as well. Markdown doesn't work if a new line is present in the message using <kbd>shift</kbd>+<kbd>enter</kbd> – rene Jan 12 '14 at 18:17
  • @RobertHarvey Is it that hard to fix? – syb0rg Jan 12 '14 at 18:19
  • 1
    Don't know. I'm not an SE developer. :) I'm just wondering how often someone might actually need this. – Robert Harvey Jan 12 '14 at 18:20
  • Could be that it is by design because if I hit shift+enter I see on the right of the message box a button 'fixed font' appear. – rene Jan 12 '14 at 18:20
  • 1
    @rene: No, that just gives you the option to convert to fixed font. Multiple newlines suggests code. – Robert Harvey Jan 12 '14 at 18:20
  • @RobertHarvey Hmmm, in that case I'm out of options. I doubt it is a user error. – rene Jan 12 '14 at 18:23
  • @hichris123 Hmmm, didn't see that when searching to make sure this wasn't a duplicate. – syb0rg Jan 12 '14 at 19:06
  • @syb0rg I assure you I didn't fabricate that question out of thin air just so I could mark it a duplicate. :P – hichris123 Jan 12 '14 at 19:10
  • @hichris123 I know. It's just usually people don't do the required research before asking a proper question. I thought I did in this case. Whoops ;) – syb0rg Jan 12 '14 at 19:11
1

I think it's by design: that something with newline is interpreted as a source code block.

Having a newline also lets that post avoid the maximum-message-length limit.

  • But it doesn't look like it is formatting it as a code either. – syb0rg Jan 12 '14 at 18:31
  • 1
    @syb0rg once your message has multiple lines, a "fixed font" button is offered for the desired effect. But I do think the current behavior is confusing. – amon Jan 12 '14 at 18:39

Not the answer you're looking for? Browse other questions tagged .