Format text in a link in reStructuredText

前端 未结 4 2048
再見小時候
再見小時候 2020-11-28 22:57

How do you format text within a denoted link in reStructuredText?

Specifically, I wish to generate the following HTML from my rst:



        
4条回答
  •  攒了一身酷
    2020-11-28 23:19

    Taking from the same FAQ page referenced by mzjn:

    The "raw" directive can be used to insert raw HTML into HTML output:
    
    Here is some |stuff|.
    
    .. |stuff| raw:: html
    
       emphasized text containing a
       hyperlink and
       inline literals
    

    It should in theory be possible to do complicated things with that that can't be done with RST.

提交回复
热议问题