rjeschke / txtmark

Yet another markdown processor for the JVM
Apache License 2.0
449 stars 100 forks source link

Ordered Lists able to start at numbers other than 1 #26

Open apadmos opened 9 years ago

apadmos commented 9 years ago

Added a property to the Block class so that this:

  1. List text
  2. List text now emits as:
  1. List text
  2. List text

instead of:

  1. List text
  2. List text

allowing ordered numerical lists in documents that start at values != 1 to display closer to the how the writer probably intended.

rjeschke commented 9 years ago

And again: sorry, so sorry.

The idea is great, but modifying the decorator interface will render any code that used the old one incompatible. That's the downside for having real interfaces: you can not add an implementation.

Right now I can not think about a way to support this feature without breaking code backwards compatibility. If you find a way, let me know, otherwise I will close this pull request soon.