ssb+issues: Fix missing dependencies of my commonmarkjs extensions.
All checks were successful
Build Tilde Friends / Build-All (push) Successful in 18m56s
All checks were successful
Build Tilde Friends / Build-All (push) Successful in 18m56s
This commit is contained in:
@ -2,6 +2,12 @@ import * as hashtagify from './commonmark-hashtag.js';
|
||||
|
||||
const k_code_classes = 'w3-theme-l4 w3-theme-border w3-round';
|
||||
|
||||
var reUnsafeProtocol = /^javascript:|vbscript:|file:|data:/i;
|
||||
var reSafeDataProtocol = /^data:image\/(?:png|gif|jpeg|webp)/i;
|
||||
var potentiallyUnsafe = function(url) {
|
||||
return reUnsafeProtocol.test(url) && !reSafeDataProtocol.test(url);
|
||||
};
|
||||
|
||||
function image(node, entering) {
|
||||
if (
|
||||
node.firstChild?.type === 'text' &&
|
||||
|
Reference in New Issue
Block a user