File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 2626
2727
2828INDENT = " " # doc is indented by four spaces
29- RAW_ANCHOR = True # whether to use raw html anchors or RST ones
29+ RAW_ANCHOR = False # whether to use raw html anchors or RST ones
3030
3131
3232_DUMMYHOOK = lambda a ,x : None # for doing nothing in traversing
@@ -555,10 +555,10 @@ def make_rst_refid(name):
555555def make_ref_pair (path , text = None , prefix = None ):
556556 if not isinstance (path , str ):
557557 path = '/' .join (path )
558- url = f"`{ path } `_" if not RAW_ANCHOR else f"#{ path } "
558+ tgt = f"`{ path } `_" if not RAW_ANCHOR else f"#{ path } "
559559 ref = ("" if not prefix else f"{ prefix } :" ) + path
560560 inline = f'`{ ref } `_' if not text else f'|{ ref } |_'
561- target = f'.. _`{ ref } `: { url } '
561+ target = f'.. _`{ ref } `: { tgt } '
562562 if text :
563563 target = f'.. |{ ref } | replace:: { text } \n ' + target
564564 return inline , target
You can’t perform that action at this time.
0 commit comments