Metadata
- Source
- SJRK-172
- Type
- New Feature
- Priority
- Minor
- Status
- Closed
- Resolution
- Fixed
- Assignee
- N/A
- Reporter
- Gregor Moss
- Created
2019-01-07T17:25:50.471-0500 - Updated
2020-08-04T13:15:37.711-0400 - Versions
- N/A
- Fixed Versions
- N/A
- Component
-
- Storytelling Tool UI
Description
Think about whether it's worth adding blocks which consist of user-authored Markdown content. This could be implemented using the md helper in gpii handlebars.
Make sure to account for possible cross-site scripting attacks:
https://github.com/showdownjs/showdown/wiki/Markdown's-XSS-Vulnerability-(and-how-to-mitigate-it)
Comments
-
Dana commented
2020-04-14T17:30:08.627-0400 Provide markdown support in text block as-is
-
Gregor Moss commented
2020-04-14T17:41:48.670-0400 That's the easiest option from a coding perspective 🙂 Should we document this feature somewhere in the site? I.e. on text blocks there could be something that says "Markdown supported" or similar, perhaps with a link to a brief cheat sheet or tutorial.
-
Gregor Moss commented
2020-07-14T07:33:45.353-0400 Functionality has been added to automatically detect links in text blocks. Should determine whether to add the same for other fields such as block headings and media block descriptions.
-
Dana commented
2020-07-14T12:04:38.394-0400 Thanks @@Gregor Moss this is great. I don't think we'd want to have links in the description or alt-text, but I'm thinking we should allow them in headings.
-
Cindy Li commented
2020-07-17T14:04:43.749-0400 The pull request for supporting markdown has been merged into the project repo master branch at this commit.