1// sdocs-marked-del.js - restrict GFM strikethrough to double tildes. 2// 3// marked's default GFM tokenizer treats a SINGLE-tilde pair as 4// strikethrough (~like this~). In real documents a bare ~ almost always 5// means "approximately" (~$14,527, ~17 years); two of them in one 6// paragraph silently strike through everything between them, and the 7// match can swallow a ** marker, breaking bold for the rest of the 8// paragraph. The GFM spec defines strikethrough as two tildes, so we 9// pin the tokenizer to ~~this~~ and leave single tildes as literal text. 10// 11// UMD: in the browser this applies itself to window.marked at load time 12// (the script tag sits right after vendor/marked.min.js); Node tests 13// require this file and call apply() on the vendored marked. 14(function (exports, core) { 15 if (!core) throw new Error('SDocsMarkedDelCore is required'); 16 17 exports.extension = core.extension; 18 exports.apply = core.apply; 19 20 if (typeof window !== 'undefined' && window.marked) core.apply(window.marked); 21})(typeof module !== 'undefined' && module.exports ? module.exports : (window.SDocsMarkedDel = {}), 22 typeof module !== 'undefined' && module.exports 23 ? require('./sdocs-marked-del-core.js') 24 : window.SDocsMarkedDelCore);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.