textile / python-textile

A Python port of Textile, A humane web text generator
Other
68 stars 23 forks source link

Does the spec allow for lists inside endnotes? #79

Closed AB1908 closed 2 years ago

AB1908 commented 2 years ago

The sun is reportedly hot,1 just like freshly baked potatoes.1 Ice is cold.2

  1. 1 2 Ouch. I also want this to contain a list:
    • Item 1
  2. 1 Brrr.

I'm looking to achieve this type of output. Is such a thing possible?

ikirudennis commented 2 years ago

I'm not able to come up with a way to accomplish this using textile's syntax, but you can always fall back to raw HTML instead, though it isn't very pretty:

The sun is reportedly hot,[#hot] just like freshly baked potatoes.[#hot] Ice is cold.[#cold]

note#hot. Ouch. here's a list:<ul><li>Item 1</li></ul>

note#cold. Brrr.

notelist:1.

And you'll likely have to keep that ul and all lis on one line in order for it to properly handle it too.

I'd recommend raising this as an issue on the textile spec repo and maybe something can get sorted out there.

I hope that helps

AB1908 commented 2 years ago

Thanks for the update. Let me close and reopen it there.