components/prism-markup.js


Log

Author Commit Date CI Message
Michael Schmidt 52e8cee9 2021-09-15T20:03:41 Markup: Made most patterns greedy (#3065)
ready-research 0ff371bb 2021-09-15T15:18:53 Markup: Fixed ReDoS (#3078)
Michael Schmidt e8d3b503 2021-06-27T14:56:07 ESLint: Added `regexp/strict` rule (#2944)
Michael Schmidt 79d22182 2021-06-08T13:50:35 FIxed some cases of quadratic worst-case runtime (#2922)
Michael Schmidt 8dbbbb35 2021-03-05T23:38:23 Markup: Added support for DOM event attributes (#2702)
Michael Schmidt e644178b 2020-12-28T18:19:11 Added test for polynomial backtracking (#2597)
Michael Schmidt 9c7bc820 2020-05-19T02:30:59 Markup: Added tokens inside DOCTYPE (#2349)
Michael Schmidt 96a0116e 2020-05-19T01:59:40 Markup: Added `attr-equals` alias for the attribute `=` sign (#2350)
Michael Schmidt ab1e34ae 2020-05-19T01:53:44 Markup: Added alias for named entities (#2351)
Valtteri Laitinen 9782cfe6 2020-05-18T02:29:27 Markup & JSON: Added new aliases (#2390) This adds the `rss` and `atom` alias for Markup and the `webmanifest` alias for JSON.
Michael Schmidt eb70070d 2020-04-27T22:43:30 Added support for SSML (#2306)
Michael Schmidt 7a554b5f 2020-04-16T22:27:54 Fixed several cases of exponential backtracking (#2268)
Michael Schmidt 5d7aab56 2020-03-26T23:30:29 Updated all String.propotype.replace calls for literal strings
Michael Schmidt 99994c58 2019-10-19T14:35:23 Markup: Improved doctype pattern (#2094) This changes Markup's `doctype` pattern to adhere to the XML spec more closely.
Michael Schmidt af67c32e 2019-03-10T18:44:30 Markup `addInline` improvements (#1798) This makes some minor improvements to the new `addInline` function of markup.
Michael Schmidt 57127701 2019-03-04T23:12:46 Markup: Added support for CSS and JS inside of CDATAs (#1660) This adds support for CSS/JS inside of (any number of) CDATAs.
Michael Schmidt c3862a24 2019-02-28T19:55:24 Fix for markup attributes (#1752) This fixes some issues related to markup (XML/HTML) attributes. See the PR for more detail.
Michael Schmidt 0030a4ef 2019-01-23T03:03:04 Decouple XML from Markup (#1603) Decouple the XML language from the Markup language so that changes to `markup` do not affect `xml`. The `style` and `script` tags added by CSS and JS modify `markup` but not `xml`. Resolves #1597. --- We can't test this because the XML language is not in its own file.
Golmote af834be6 2018-03-14T20:38:47 Markup: Make tags greedy. Fix #1356
Golmote e6213acb 2018-03-11T12:02:50 Add support for ERB. Fix #1318
Golmote ea380c6c 2017-10-22T15:00:54 Markup: Regexp optimisation + fix punctuation inside attr-value
Valtteri Laitinen 1d5047df 2017-06-05T13:31:23 Support HTML entities in attribute values (#1143) * Support HTML entities in attribute values * Remove duplication
Valtteri Laitinen 8aa2cc4a 2017-05-08T13:56:50 Replace [\w\W] with [\s\S] and [0-9] with \d in regexes (#1107) * Replace [\w\W] with [^] and [0-9] with \d in regexes * Replace [\s\S] with [^] * Replace [^] with [\s\S]
Valtteri Laitinen 3dd72198 2016-08-05T03:32:09 Make doctype case insensetive (#1009)
Golmote 31ea66b6 2016-07-04T00:32:28 Allow for dots in Markup tag names, but not in HTML tags included in Textile. Fixes #888
Golmote 2ba763e0 2015-10-13T21:08:49 Add support for Parser
Golmote 283691ec 2015-09-06T11:17:35 Markup: don't allow dot inside tag name
Golmote 2f9fe1ef 2015-09-03T23:39:16 Added some language aliases.
Golmote 85d8a556 2015-08-31T20:55:52 Markup: Don't allow = to appear in tag name
Golmote c19a238b 2015-07-08T19:18:35 Markup: doctype and prolog can be multi-line.
Golmote 1ebcb8e6 2015-07-08T19:17:36 Markup: highlight single quotes in attr-value as punctuation
Golmote 75452ba1 2015-06-12T21:35:06 Markup: optimized tag's regexp so that it stops crashing on large unclosed tags
Golmote 52fd55ee 2015-06-12T20:20:41 Relax markup grammar to allow non-ASCII chars in tag names and attributes. Fix #585
Golmote b1fd5bdc 2015-03-10T08:27:53 Removed unused global flag in all grammars
Golmote 9487b5be 2015-01-09T08:11:21 Removed unneeded escapes in RegExps, added some semicolons
Thomas Ingram ad7513cb 2014-05-24T13:06:57 Attempt to fix clike and markup grammars Original authors should at least verify these changes are correct
Thomas Ingram 9f6cff9b 2014-05-23T13:01:26 Whitespace cleanup
Daniel Wachsstock a74ff878 2013-12-14T19:36:16 Allow more characters in attribute values The current pattern uses `\w+` but the [html5 grammar](http://www.w3.org/html/wg/drafts/html/master/syntax.html#attribute-value-(unquoted%29-state) allows just about any character, `[^\s'">=]+`
Lea Verou 1d899d7d 2013-06-14T11:46:34 Fixed parsing for entities and <> chars
David Lantner ce86de5b 2012-11-30T10:46:52 Change 'cdata' regex to capture empty instances Changing "+" to "*" enables the regex to match zero or more occurrences of the preceding range instead of one or more occurrences. In cases where there are multiple CDATA sections, the opening tag ("<![CDATA[") of the first section and the closing tag ("]]>") of the next section are captured as a single instance. Demo: http://dabblet.com/gist/4176483
Lea Verou 40ce3954 2012-11-13T16:30:49 Fixed bug with self-closing tags
Lea Verou 577a5890 2012-11-12T05:35:39 Fixed HTML highlighting bugs
Lea Verou 2099172d 2012-11-12T05:35:39 Fixed HTML highlighting bugs
Lea Verou ea89ab60 2012-07-29T01:35:13 Minor improvements to Markup
Lea Verou 9eeeb7c6 2012-07-29T01:03:05 Moved inline CSS & JS to their language definitions
Lea Verou 54e2eeab 2012-07-29T00:26:50 Added (and documented) Prism.languages.insertBefore
Lea Verou ae4b4812 2012-07-23T19:16:50 Fixed entity tooltip
Lea Verou bdb8fae8 2012-07-13T15:11:03 Added hooks system, moved entity tooltips to the Markup language, as a plugin
Lea Verou a97d26b2 2012-07-13T02:31:49 Added highlighting for CDATA sections
Lea Verou 2d57ff2a 2012-07-12T19:07:05 Added highlighting for doctypes & XML prolog, removed the iframed examples and replaced them with XHR
Lea Verou 6dc08f3d 2012-07-12T17:18:48 Renamed html to markup, since it’s also about XML