Markdown angle brackets link issue #3854

Closed
opened 2025-12-29 18:31:37 +01:00 by adam · 1 comment
Owner

Originally created by @DeemGit on GitHub (Jul 11, 2020).

From markdown manual:

URLs and URLs in angle brackets will automatically get turned into links.
http://www.example.com or http://www.example.com and sometimes
example.com (but not on Github, for example).

netbox/utilities/templatetags/helper.py

@register.filter(is_safe=True)
def render_markdown(value):
    """
    Render text as Markdown
    """
    # Strip HTML tags
    value = strip_tags(value)

but strip_tags will automatically cut off such tags and this markdown won't work.
example : markdown < http://google.com > is just removed in comments.

Originally created by @DeemGit on GitHub (Jul 11, 2020). From markdown manual: _URLs and URLs in **angle brackets** will automatically get turned into links. http://www.example.com or <http://www.example.com> and sometimes example.com (but not on Github, for example)._ `netbox/utilities/templatetags/helper.py` ``` @register.filter(is_safe=True) def render_markdown(value): """ Render text as Markdown """ # Strip HTML tags value = strip_tags(value) ``` but `strip_tags` will automatically cut off such tags and this markdown won't work. example : markdown `<` http://google.com `>` is just removed in comments.
adam closed this issue 2025-12-29 18:31:37 +01:00
Author
Owner

@jeremystretch commented on GitHub (Jul 13, 2020):

This issue has been closed as it does not conform to one of the provided templates as required by the contributing guide. If you'd like to request that your issue be re-opened, please first update the content so that it matches the appropriate template (this may require rewriting your issue entirely).

@jeremystretch commented on GitHub (Jul 13, 2020): This issue has been closed as it does not conform to one of the [provided templates](https://github.com/netbox-community/netbox/issues/new/choose) as required by the [contributing guide](https://github.com/netbox-community/netbox/blob/master/CONTRIBUTING.md). If you'd like to request that your issue be re-opened, please first update the content so that it matches the appropriate template (this may require rewriting your issue entirely).
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#3854