2017-04-13 69 views
1

我知道這種失敗的文字塊的目的,但我想知道是否有任何解決方法來實現這一目標。我的用例是將超鏈接放在僞代碼的塊字面中,以便引用文檔中其他地方的詳細信息。是否可以在ReST文字塊中插入超鏈接?

實施例:

Look at this JSON pseudo code 
----------------------------- 

:: 

    { 
    "id": <number>, 
    "name": <string>, 
    "big_property": <see schema of big_object_> 
    } 

And the details of big object 
----------------------------- 

.. _big_object: 

:: 

    { 
    <another_schema> 
    } 

我想的是,在第一字面塊,big_object_變爲超鏈接。

回答

3

可以使用parsed-literal指令此:

.. parsed-literal:: 

    { 
    "id": <number>, 
    "name": <string>, 
    "big_property": <see schema of big_object_> 
    } 
+0

這非常謝謝!不知何故,通過使用谷歌搜索「重組文字超鏈接的文字塊」或變體,我不可能發現,我確信沒有解決方案:D – Quentin