From: puntaier <pun...@gt...> - 2018-10-29 12:15:38
|
further:: .. _`here space is removed`: NOT removed: At the target, space is replaced by ``-`` in the HTML id. But this |here space is removed| fails, because space is removed in the HTML. .. |here space is removed| replace:: `some link text <somefile.html#here space is removed>`__ Note, that pandoc leaves links and targets as is and from HTML there is no reason to change them, either. I think this might be considered a bug. On 29.10.2018 11:53, puntaier wrote: > I avoid hyphen in identifiers, > > because the hyphen is not an identifier char in most programming > languages. > > Now I have realized that rst2html.py replaces:: > > .. _`some_target_I_need_to_know`: > > with:: > > id="some-target-I-need-to-know" > > > The problem is, that I cannot address this target from another file, > because it is not any more the name I gave it. > > - What is the reason, why this mapping from underscore to hyphen is done? > - Is there a configuration in docutils to prevent this mapping from > underscore to hyphen? > - Could someone point me to the docutils code where the mapping from > underscore to hyphen happens? > > Thanks a lot. > > > > _______________________________________________ > Docutils-develop mailing list > Doc...@li... > https://lists.sourceforge.net/lists/listinfo/docutils-develop > > Please use "Reply All" to reply to the list. |