RestructuredText - Hyperlinks without leading or trailing spaces

Is it possible to create hyperlinks without leading and trailing spaces? The following does not work:

re`Structured`_Text .. _`Structured`: http://docutils.sourceforge.net/docs/user/rst/quickstart.html 

I ask, I work with Chinese text. Spaces are not used as word delimiters in Chinese. With spaces added, the text does not look well formatted, for example:

没有空格就 对 了.

against

多 了空格不好看.

Any ideas?

+7
source share
1 answer

In the end, I will get rid of this problem. Awkward but working:

 没有\ 空格_\就对了。我觉得\ `中文和 RST`_\不够兼容。 .. _空格: http://a-link-with-pure-zh-te.xt .. _`中文和 RST`: http://a-link-with-mixed-zh-and.en 

Update: with docutils 0.13 we can enable inline character level markup . In this way, we can write, as shown below, and save several backslashes.

 没有\ 空格_就对了。我觉得`中文和 RST`_不够兼容。 

This option is activated using the command line switch:

 python rst2html.py --character-level-inline-markup 1.rst > 1.html 
+4
source

All Articles