Remarks in code blocks are rendered as header

Remko Catersels's Avatar

Remko Catersels

06 Nov, 2013 11:30 AM

Remarks within a code block is rendered as header, for example:

main() {
 int a=0;
# remark
 int b=1;
}

Is rendered as two code blocks divided by a header with the text "remark". This should all be one code block. No parsing should be done inside a code block.

NB. Apparently it works correctly here but not in our tickets.

  1. 1 Posted by Nicole on 06 Nov, 2013 02:53 PM

    Nicole's Avatar

    Remko -

    Can you link to the ticket where your code block didn't behave as expected? We'll take a look.

    Thanks,
    Nicole

  2. 2 Posted by Remko Catersels on 06 Nov, 2013 05:12 PM

    Remko Catersels's Avatar
  3. 3 Posted by Nicole on 06 Nov, 2013 05:24 PM

    Nicole's Avatar

    Can you give us a screenshot of https://trackconcepts.lighthouseapp.com/projects/114424/tickets/20-... and indicate which part isn't displaying as expected?

    Thanks,
    Nicole

  4. 4 Posted by Julien on 06 Nov, 2013 05:27 PM

    Julien's Avatar

    Hi Remko,

    Code blocks need spaces around them. Ie, do:

    […]
    
    @@@
    foo
    # comment
    bar
    @@@
    

    Rather than:

    […]
    @@@
    foo
    # comment
    bar
    @@@
    

    Then you won't have any problems. You can also use the 4 spaces syntax (again with new lines around).

    Let me know how that goes.

    Cheers!

  5. 5 Posted by Remko Catersels on 07 Nov, 2013 10:03 AM

    Remko Catersels's Avatar

    On Wed, November 6, 2013 18:28, Julien wrote:

    That seems to do the trick.

  6. Nicole closed this discussion on 07 Nov, 2013 05:04 PM.

Discussions are closed to public comments.
If you need help with Lighthouse please start a new discussion.

Keyboard shortcuts

Generic

? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac