Metadata
- Source
- FLUID-5773
- Type
- Bug
- Priority
- Major
- Status
- Closed
- Resolution
- Won't Fix
- Assignee
- Jonathan Hung
- Reporter
- Jonathan Hung
- Created
2015-09-25T08:30:28.137-0400 - Updated
2024-07-31T14:20:15.878-0400 - Versions
- N/A
- Fixed Versions
- N/A
- Component
-
- Docs platform
Description
Create a helper function in Handlebars which parses a document for external links and adds the following to it automatically: target="_blank" class="link-external"
This makes it easier for content authors and ensures external links all look and behave the same way.
Comments
-
Jonathan Hung commented
2015-12-14T13:40:03.824-0500 We can use the Markdown plugin and override it's renderer for links. To do this, we may want to use marked.setOptions() and override the link renderer.
See:
https://github.com/chjj/marked#Options
https://github.com/chjj/marked#renderer -
Simon Bates commented
2015-12-14T16:17:59.937-0500 It looks like we should be able to set options for Marked using the docpad-plugin-marked
markedOptions
:https://github.com/docpad/docpad-plugin-marked/#marked-options
-
Justin Obara commented
2024-07-31T14:20:07.803-0400 I believe this was related to our old docs platform which was redesigned after moving to 11ty.