rich-filemanager
Version:
Highly customizable open-source file manager
2 lines • 1.3 kB
JavaScript
/*! markdown-it-replace-link 1.0.0 https://github.com//markdown-it/markdown-it-replace-link @license MIT */
!function(e){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=e();else if("function"==typeof define&&define.amd)define([],e);else{var n;n="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this,n.markdownitReplaceLink=e()}}(function(){return function e(n,r,o){function t(f,u){if(!r[f]){if(!n[f]){var c="function"==typeof require&&require;if(!u&&c)return c(f,!0);if(i)return i(f,!0);var l=new Error("Cannot find module '"+f+"'");throw l.code="MODULE_NOT_FOUND",l}var a=r[f]={exports:{}};n[f][0].call(a.exports,function(e){var r=n[f][1][e];return t(r?r:e)},a,a.exports,e,n,r,o)}return r[f].exports}for(var i="function"==typeof require&&require,f=0;f<o.length;f++)t(o[f]);return t}({1:[function(e,n){"use strict";function r(e,n,r,o){e.attrs.forEach(function(t){t[0]===n&&(t[1]=r(t[1],o,e))})}n.exports=function(e){e.core.ruler.after("inline","replace-link",function(n){var o=e.options.replaceLink;return"function"==typeof o&&n.tokens.forEach(function(e){"inline"===e.type&&e.children&&e.children.forEach(function(e){var t=e.type;"link_open"===t?r(e,"href",o,n.env):"image"===t&&r(e,"src",o,n.env)})}),!1})}},{}]},{},[1])(1)});