File tree Expand file tree Collapse file tree 2 files changed +13
-13
lines changed Expand file tree Collapse file tree 2 files changed +13
-13
lines changed Original file line number Diff line number Diff line change @@ -18,11 +18,11 @@ Allowed field Data Type Description
18
18
Allowed children
19
19
================
20
20
21
- =============== ==================== ==============================
22
- Allowed child Data Type Description
23
- =============== ==================== ==============================
24
- **sections ** `section < Section >`_ *The sections of the document *
25
- =============== ==================== ==============================
21
+ =============== ===================== ==============================
22
+ Allowed child Data Type Description
23
+ =============== ===================== ==============================
24
+ **sections ** `Section < #section >`_ *The sections of the document *
25
+ =============== ===================== ==============================
26
26
27
27
=======
28
28
Section
@@ -42,11 +42,11 @@ Allowed field Data Type Description
42
42
Allowed children
43
43
================
44
44
45
- =============== ======================== ================
46
- Allowed child Data Type Description
47
- =============== ======================== ================
48
- **paragraphs ** `paragraph < Paragraph >`_ *The paragraphs *
49
- =============== ======================== ================
45
+ =============== ========================= ================
46
+ Allowed child Data Type Description
47
+ =============== ========================= ================
48
+ **paragraphs ** `Paragraph < #paragraph >`_ *The paragraphs *
49
+ =============== ========================= ================
50
50
51
51
=========
52
52
Paragraph
Original file line number Diff line number Diff line change @@ -394,7 +394,7 @@ def insert_links(text, format=MARKDOWN_FORMAT):
394
394
if format == MARKDOWN_FORMAT :
395
395
text2 += '%s<a href="#%s">%s</a>' % (pre , type .lower (), type )
396
396
elif format == RST_FORMAT :
397
- text2 += ('%s' + rst_url_format ) % (pre , type , type .lower ())
397
+ text2 += ('%s' + rst_url_format ) % (pre , type , '#' + type .lower ())
398
398
if int (len (split ) / 2.0 ) != len (split ) / 2.0 :
399
399
text2 += split [- 1 ]
400
400
return text2
@@ -454,7 +454,7 @@ def insert_links(text, format=MARKDOWN_FORMAT):
454
454
if format == RST_FORMAT :
455
455
n = "**%s**" % f
456
456
t = "%s" % (
457
- rst_url_format % (type_ , type_ .lower ())
457
+ rst_url_format % (type_ , '#' + type_ .lower ())
458
458
if referencable
459
459
else type_ ,
460
460
)
@@ -514,7 +514,7 @@ def insert_links(text, format=MARKDOWN_FORMAT):
514
514
if format == RST_FORMAT :
515
515
n = "**%s**" % c
516
516
t = "%s" % (
517
- rst_url_format % (type_ .lower (), type_ )
517
+ rst_url_format % (type_ , '#' + type_ .lower ())
518
518
if referencable
519
519
else type_ ,
520
520
)
You can’t perform that action at this time.
0 commit comments