Skip to content

Commit

Permalink
fix: Wrap file path in backticks to escape it
Browse files Browse the repository at this point in the history
  • Loading branch information
pawamoy committed Feb 25, 2020
1 parent 668fc43 commit 2525f39
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/mkdocstrings/renderer.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ def render_object(self, obj, heading_level, lines):
)

if self.add_source_details and obj.source:
lines.append(f'\n??? note "Show source code in {obj.relative_file_path}"')
lines.append(f'\n??? note "Show source code in `{obj.relative_file_path}`"')
lines.append(f' ```python linenums="{obj.source[1]}"')
lines.append(textwrap.indent("".join(obj.source[0]), " "))
lines.append(" ```\n")
Expand Down

0 comments on commit 2525f39

Please sign in to comment.