Skip to content

Commit 3324c2a

Browse files
committed
feat: Pass symbol map to markdown method of objects, to allow generating autorefs
Issue-5: #5
1 parent 49fcd56 commit 3324c2a

12 files changed

+12
-12
lines changed

src/mkdocstrings_handlers/typescript/templates/material/_base/class.html.jinja

+1-1
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@
5252
{% block contents scoped %}
5353
{% block docstring scoped %}
5454
{% if class.comment %}
55-
{{ class.comment.markdown|convert_markdown(heading_level, html_id) }}
55+
{{ class.comment.markdown(symbol_map=class.symbol_map)|convert_markdown(heading_level, html_id) }}
5656
{% endif %}
5757
{% endblock docstring %}
5858
{% block children scoped %}

src/mkdocstrings_handlers/typescript/templates/material/_base/constructor.html.jinja

+1-1
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@
5252
{% block contents scoped %}
5353
{% block docstring scoped %}
5454
{% if constructor.comment %}
55-
{{ constructor.comment.markdown|convert_markdown(heading_level, html_id) }}
55+
{{ constructor.comment.markdown(symbol_map=constructor.symbol_map)|convert_markdown(heading_level, html_id) }}
5656
{% endif %}
5757
{% endblock docstring %}
5858
{% block children scoped %}

src/mkdocstrings_handlers/typescript/templates/material/_base/enum.html.jinja

+1-1
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@
5252
{% block contents scoped %}
5353
{% block docstring scoped %}
5454
{% if enum.comment %}
55-
{{ enum.comment.markdown|convert_markdown(heading_level, html_id) }}
55+
{{ enum.comment.markdown(symbol_map=enum.symbol_map)|convert_markdown(heading_level, html_id) }}
5656
{% endif %}
5757
{% endblock docstring %}
5858
{% block children scoped %}

src/mkdocstrings_handlers/typescript/templates/material/_base/enum_member.html.jinja

+1-1
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@
5252
{% block contents scoped %}
5353
{% block docstring scoped %}
5454
{% if enum_member.comment %}
55-
{{ enum_member.comment.markdown|convert_markdown(heading_level, html_id) }}
55+
{{ enum_member.comment.markdown(symbol_map=enum_member.symbol_map)|convert_markdown(heading_level, html_id) }}
5656
{% endif %}
5757
{% endblock docstring %}
5858
{% endblock contents %}

src/mkdocstrings_handlers/typescript/templates/material/_base/function.html.jinja

+1-1
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@
6767
{% block contents scoped %}
6868
{% block docstring scoped %}
6969
{% if function.comment %}
70-
{{ function.comment.markdown|convert_markdown(heading_level, html_id) }}
70+
{{ function.comment.markdown(symbol_map=function.symbol_map)|convert_markdown(heading_level, html_id) }}
7171
{% endif %}
7272
{% endblock docstring %}
7373
{% endblock contents %}

src/mkdocstrings_handlers/typescript/templates/material/_base/interface.html.jinja

+1-1
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@
5252
{% block contents scoped %}
5353
{% block docstring scoped %}
5454
{% if interface.comment %}
55-
{{ interface.comment.markdown|convert_markdown(heading_level, html_id) }}
55+
{{ interface.comment.markdown(symbol_map=interface.symbol_map)|convert_markdown(heading_level, html_id) }}
5656
{% endif %}
5757
{% endblock docstring %}
5858
{% block children scoped %}

src/mkdocstrings_handlers/typescript/templates/material/_base/method.html.jinja

+1-1
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@
5252
{% block contents scoped %}
5353
{% block docstring scoped %}
5454
{% if method.comment %}
55-
{{ method.comment.markdown|convert_markdown(heading_level, html_id) }}
55+
{{ method.comment.markdown(symbol_map=method.symbol_map)|convert_markdown(heading_level, html_id) }}
5656
{% endif %}
5757
{% endblock docstring %}
5858
{% block children scoped %}

src/mkdocstrings_handlers/typescript/templates/material/_base/module.html.jinja

+1-1
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@
5252
{% block contents scoped %}
5353
{% block docstring scoped %}
5454
{% if module.comment %}
55-
{{ module.comment.markdown|convert_markdown(heading_level, html_id) }}
55+
{{ module.comment.markdown(symbol_map=module.symbol_map)|convert_markdown(heading_level, html_id) }}
5656
{% endif %}
5757
{% endblock docstring %}
5858
{% block children scoped %}

src/mkdocstrings_handlers/typescript/templates/material/_base/property.html.jinja

+1-1
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@
5252
{% block contents scoped %}
5353
{% block docstring scoped %}
5454
{% if property.comment %}
55-
{{ property.comment.markdown|convert_markdown(heading_level, html_id) }}
55+
{{ property.comment.markdown(symbol_map=property.symbol_map)|convert_markdown(heading_level, html_id) }}
5656
{% endif %}
5757
{% endblock docstring %}
5858
{% block children scoped %}

src/mkdocstrings_handlers/typescript/templates/material/_base/type.html.jinja

+1-1
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@
4848
{% block contents scoped %}
4949
{% block docstring scoped %}
5050
{% if type.comment %}
51-
{{ type.comment.markdown|convert_markdown(heading_level, html_id) }}
51+
{{ type.comment.markdown(symbol_map=type.symbol_map)|convert_markdown(heading_level, html_id) }}
5252
{% endif %}
5353
{% endblock docstring %}
5454
{% block children scoped %}

src/mkdocstrings_handlers/typescript/templates/material/_base/type_alias.html.jinja

+1-1
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@
5252
{% block contents scoped %}
5353
{% block docstring scoped %}
5454
{% if type_alias.comment %}
55-
{{ type_alias.comment.markdown|convert_markdown(heading_level, html_id) }}
55+
{{ type_alias.comment.markdown(symbol_map=type_alias.symbol_map)|convert_markdown(heading_level, html_id) }}
5656
{% endif %}
5757
{% endblock docstring %}
5858
{% block children scoped %}

src/mkdocstrings_handlers/typescript/templates/material/_base/variable.html.jinja

+1-1
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@
5252
{% block contents scoped %}
5353
{% block docstring scoped %}
5454
{% if variable.comment %}
55-
{{ variable.comment.markdown|convert_markdown(heading_level, html_id) }}
55+
{{ variable.comment.markdown(symbol_map=variable.symbol_map)|convert_markdown(heading_level, html_id) }}
5656
{% endif %}
5757
{% endblock docstring %}
5858
{% block children scoped %}

0 commit comments

Comments
 (0)