#7298 weird bullet renumbering scheme in tracker comments.

self-service
Chris Tsai
None
2014-05-07
2014-04-08
Alan Ezust
No

I have 2 comments.

  1. this is a comment that starts with item 1 blabla
  2. this is another comment that starts with item 2 blabla
  3. in the tracker ticket linked below my numbers got changed to 1 for some reason.
  4. let's see what happens to this one.

https://sourceforge.net/p/jedit/patches/522/#2192

Discussion

  • Alan Ezust
    Alan Ezust
    2014-04-08

    1. this is a test. item 5 is here.
    2. this is another test. item 6 is here.

    Aha, it reproduces here too.
    But it also manifested itself in a strange way making all my bullets 1. in the first comment.

     
    Last edit: Alan Ezust 2014-04-08
  • Alan Ezust
    Alan Ezust
    2014-04-08

    Also, the refactored code has old API doc comments, that need to be updated.

     
  • Alan Ezust
    Alan Ezust
    2014-04-08

    oops. ignore previous comment. wrong tracker

     
  • Chris Tsai
    Chris Tsai
    2014-04-09

    Okay, so this is technically correct as per the markdown spec. I'll try to explain exactly why.

    First thing is that Markdown doesn't actually take into account the actual number values, but simply that they are numbers, so for a numbered list, it always starts at 1. This is explained more thoroughly in the original Markdown syntax guide: http://daringfireball.net/projects/markdown/syntax#list

    The other factor is that to designate a list in Markdown, you need to have a blank line before it. Which is why your "1." didn't actually start a list in the output.

    I hope that clarifies this. Let me know if it helped!

    Regards,
    Chris Tsai, SourceForge.net Support

     
  • Chris Tsai
    Chris Tsai
    2014-04-09

    • status: unread --> pending
    • assigned_to: Chris Tsai
     
  • Chris Tsai
    Chris Tsai
    2014-05-07

    • status: pending --> self-service