Skip to content

Commit 0261050

Browse files
committed
Corrected anchor creation and added check for slate output format
1 parent 234c56f commit 0261050

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

doc-generator/doc_formatter/markdown_generator.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -221,7 +221,7 @@ def format_property_row(self, schema_ref, prop_name, prop_info, prop_path=[], in
221221
else:
222222
anchor = schema_anchor.lower() + '-' + prop_name.lower()
223223
text_descr = (_('For the possible property values, see %(link)s in Property details.') %
224-
{'link': '<a href="#' + anchor + '">' + prop_name + '</a>'})
224+
{'link': '[' + prop_name + '](#' + anchor + ')'})
225225

226226
else:
227227
text_descr = _('For more information about this property, see Property details.')
@@ -664,6 +664,9 @@ def link_to_own_schema(self, schema_ref, schema_uri):
664664
if not schema_name:
665665
schema_name = schema_ref
666666

667+
if self.markdown_mode == 'slate':
668+
return self.formatter.italic(schema_name)
669+
667670
if self.is_documented_schema(schema_ref):
668671
result = '[' + schema_name + '](#' + schema_name.lower() + ')'
669672
else:

0 commit comments

Comments
 (0)