securemark 0.275.1 → 0.275.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +4 -0
- package/dist/index.js +2 -2
- package/package.json +1 -1
- package/src/parser/inline/extension/indexer.ts +4 -1
package/CHANGELOG.md
CHANGED
package/dist/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! securemark v0.275.
|
|
1
|
+
/*! securemark v0.275.2 https://github.com/falsandtru/securemark | (c) 2017, falsandtru | UNLICENSED License */
|
|
2
2
|
(function webpackUniversalModuleDefinition(root, factory) {
|
|
3
3
|
if(typeof exports === 'object' && typeof module === 'object')
|
|
4
4
|
module.exports = factory(require("Prism"), require("DOMPurify"));
|
|
@@ -6291,7 +6291,7 @@ exports.indexer = (0, combinator_1.creation)((0, combinator_1.fmap)((0, combinat
|
|
|
6291
6291
|
// Indexer is invisible but invalids must be visible.
|
|
6292
6292
|
([el]) => el.getElementsByClassName('invalid').length === 0), ([el]) => [(0, dom_1.html)('span', {
|
|
6293
6293
|
class: 'indexer',
|
|
6294
|
-
'data-index': el.getAttribute('href').slice(1).replace(
|
|
6294
|
+
'data-index': el.getAttribute('href').slice(1).replace(/^[^:]*:[^:]*:/, '')
|
|
6295
6295
|
})]));
|
|
6296
6296
|
|
|
6297
6297
|
/***/ }),
|
package/package.json
CHANGED
|
@@ -15,5 +15,8 @@ export const indexer: ExtensionParser.IndexerParser = creation(fmap(verify(surro
|
|
|
15
15
|
// Indexer is invisible but invalids must be visible.
|
|
16
16
|
([el]) => el.getElementsByClassName('invalid').length === 0),
|
|
17
17
|
([el]) => [
|
|
18
|
-
html('span', {
|
|
18
|
+
html('span', {
|
|
19
|
+
class: 'indexer',
|
|
20
|
+
'data-index': el.getAttribute('href')!.slice(1).replace(/^[^:]*:[^:]*:/, ''),
|
|
21
|
+
}),
|
|
19
22
|
]));
|