-
Notifications
You must be signed in to change notification settings - Fork 108
Add snippets for raw HTML #176
base: master
Are you sure you want to change the base?
Conversation
Take the sanitation whitelist,
minus the non-standard elements,
minus the elements that are covered by the GFM syntax,
we get
|
In Atom, language-gfm is the grammar package for all .md, .markdown files by default. The thing is those files are not necessarily used on Github, so maybe we shouldn't confine the snippet list to only elements in the whitelist? Esp. when some frequently used text-level elements, e.g., |
I'm not sure I understand what you mean by this. |
That means "can we add snippets for elements that are not in the sanitation whitelist?" |
But why would we, if GFM doesn't support the others? |
I think it's GitHub that doesn't allow other elements. But not every .md file that is edited in Atom goes to GitHub. There're many other platforms or CMSes also take Markdown files, such as Jekyll and Ghost.
|
Yes, exactly - this is language-gfm, not language-markdown. This package should only be supporting things that GFM supports. |
Yet it's the default grammar package for all .md files, regardless. See my point here? So if that sanitation list is part of the definition of GFM, you can maybe consider updating that list? As you see it even contains h7, h8, tt, strike. I don't see a reason why abbr, dfn and more can't be in that list. |
The Atom/GitHub team made a conscious decision to make the Markdown language package that's bundled with Atom the GFM variety, and so we need to stick to that. You would have to ask the maintainers of that list to update it. |
No description provided.