-
-
Notifications
You must be signed in to change notification settings - Fork 198
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Allow users to specify tags that can be used with disallowed raw html #507
Comments
While looking for an abbreviations extension, I think I discovered the issue: https://commonmark.thephpleague.com/1.5/extensions/disallowed-raw-html/ Because I'm using GFM, this extension gets included automatically? I'm wondering if there is a way to override this or turn it off and still use the GFM extension? I'm the only one creating content; so, the malicious person in this case would be me. :) |
Ah! I get it. Sorry - new to going this deep with Commonmark. Will explicitly set extensions related to GFM instead of the shortcut and just skip disallowed raw html...still might be nice to have a way to allow a specific tag to opt into the less secure posture. |
I'm open to the idea of allowing the disallowed tag list to be configurable - it could accept an array of strings where each one if the name of a tag like |
@colinodell I agree. I've already run into the scenario where a user selects the GFM parser and then goes to set I've been trying to figure out a way to visually represent that this extension explicitly disallows certain tags, but that would certainly be easier if it were configurable. |
I will go ahead and reopen with a change to the title to open it up for wider discussion - please feel free to close again at your discretion. |
This has been implemented via #512 and will be included in the upcoming 2.0.0 release. Thanks for the idea! |
Might be related to #283 though I don't think it is.
Version(s) affected: 1.4.*
Description
Config:
Output:
I have another set, similar to this one use
<dl>
, which works as expected. Therefore, it seems to be isolated to<iframe>
near as I can tell. Almost doing a partial escape.How to reproduce
Should only require place markdown containing an
<iframe>
. I have copied the code. above into two of my other markdown files including some with other HTML as well and get the same result.Note: I'm not aware of an
<iframe>
specific configuration setting or requirement, apologies if I missed it somewhere.The text was updated successfully, but these errors were encountered: