forked from forem/forem
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove unused attributes from markdown parser (forem#13484)
* Remove definitely unused attributes * Refactor and remove unused attributes * Add parentheses * Prevent alt tag from having Liquid tags inside * Add test * Remove more unused attributes * Scrub any valid attributes * Remove unused tags and add more tests * Remove <i> tag; <em> is used by parser * Remove <center> b/c it's deprecated though still valid * <cite> is a safe tag and used by some * Eh I changed my mind about center lol * Add underline <u> back in * Don't allow width changes * Use frozen constant for regex * Use #remove over #gsub
- Loading branch information
Showing
3 changed files
with
49 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters