Hi All --

I'd like to automatically generate anchor tags for each list item, 
including for each nested item.

So the rst text

>
> 1. first item
> 2. second
>
 

  1. second-one
>   2. second-two
>
 

3. third


would generate something like

> <ol>
>   <li> <a name="list0_0"> first item </li>
>   <li> <a name="list0_1"> second 
>     <ol>
>       <li> <a name="list0_0_0"> second-one </li>
>       <li> <a name="list0_0_1"> second-two </li>
>     </ol>
>   <li> <a name="list0_2"> third
> </ol>


I don't care about the anchor tag format, as long as it's predictable.
  


To add clarification: I have imported several laws into roughly 100 
articles, most of which contain lists.  The articles heavily 
cross-reference each other.  There are approximately 2k list items total.

When article 7 references article 3 list 2 item g, I would like to create a 
link directly to the article and list item, rather than just to the article.

Thanks for any assistance you can give!

ps -- I write software, so if this isn't achievable out of box (I expect it 
isn't), a nudge in the direction of how one would write code to do this 
would be gratefully appreciated.

Thank you all for your help.

-- 
You received this message because you are subscribed to the Google Groups 
"sphinx-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/sphinx-users.
For more options, visit https://groups.google.com/d/optout.

Reply via email to