On Jan 22, 11:24 am, Georg Brandl <[email protected]> wrote:
> Mike Lewis schrieb:
>
> > Hi,
>
> > I'm trying to convert some of our internal docs to RST. We have
> > headings and other items that we want to cross reference such as
> > "<foo>"
>
> > If I do :ref:`<foo>` it doesn't understand it properly. :ref:`\<foo>`
> > doesn't work either. It does work with a hyperlink though.
>
> > How do I escape this? Or if it's a bug, I don't mind contributing a
> > patch.
>
> To be honest, I hadn't thought that someone would want to use angle
> brackets in reference labels :)
>
> Is it really necessary that these labels are bracketed? (Or could you
> use square brackets instead?)
>

Just to follow up: I work with Mike, but for some reason he never got
around to following up. The rationale for us was that we have XML
element documentation with < and > in the title, which causes
confusion in sphinx. We worked around it by using extra, less bizarre
target names, but it would still be convenient to have some mechanism
to link to targets with (<|>)s directly.

fdr

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"sphinx-dev" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/sphinx-dev?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to