Skip to content

Commit

Permalink
Browser files rebuild
Browse files Browse the repository at this point in the history
  • Loading branch information
Vitaly Puzrin committed Jun 2, 2020
1 parent f27f757 commit 58bc8d7
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 9 deletions.
16 changes: 9 additions & 7 deletions dist/markdown-it-container.js
Original file line number Diff line number Diff line change
@@ -1,23 +1,25 @@
/*! markdown-it-container 2.0.0 https://github.com//markdown-it/markdown-it-container @license MIT */(function(f){if(typeof exports==="object"&&typeof module!=="undefined"){module.exports=f()}else if(typeof define==="function"&&define.amd){define([],f)}else{var g;if(typeof window!=="undefined"){g=window}else if(typeof global!=="undefined"){g=global}else if(typeof self!=="undefined"){g=self}else{g=this}g.markdownitContainer = f()}})(function(){var define,module,exports;return (function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}var l=n[o]={exports:{}};t[o][0].call(l.exports,function(e){var n=t[o][1][e];return s(n?n:e)},l,l.exports,e,t,n,r)}return n[o].exports}var i=typeof require=="function"&&require;for(var o=0;o<r.length;o++)s(r[o]);return s})({1:[function(require,module,exports){
/*! markdown-it-container 3.0.0 https://github.com//markdown-it/markdown-it-container @license MIT */(function(f){if(typeof exports==="object"&&typeof module!=="undefined"){module.exports=f()}else if(typeof define==="function"&&define.amd){define([],f)}else{var g;if(typeof window!=="undefined"){g=window}else if(typeof global!=="undefined"){g=global}else if(typeof self!=="undefined"){g=self}else{g=this}g.markdownitContainer = f()}})(function(){var define,module,exports;return (function(){function r(e,n,t){function o(i,f){if(!n[i]){if(!e[i]){var c="function"==typeof require&&require;if(!f&&c)return c(i,!0);if(u)return u(i,!0);var a=new Error("Cannot find module '"+i+"'");throw a.code="MODULE_NOT_FOUND",a}var p=n[i]={exports:{}};e[i][0].call(p.exports,function(r){var n=e[i][1][r];return o(n||r)},p,p.exports,r,e,n,t)}return n[i].exports}for(var u="function"==typeof require&&require,i=0;i<t.length;i++)o(t[i]);return o}return r})()({1:[function(require,module,exports){
// Process block-level custom containers
//
'use strict';


module.exports = function container_plugin(md, name, options) {

function validateDefault(params) {
// Second param may be useful if you decide
// to increase minimal allowed marker length
function validateDefault(params/*, markup*/) {
return params.trim().split(' ', 2)[0] === name;
}

function renderDefault(tokens, idx, _options, env, self) {
function renderDefault(tokens, idx, _options, env, slf) {

// add a class to the opening tag
if (tokens[idx].nesting === 1) {
tokens[idx].attrPush([ 'class', name ]);
tokens[idx].attrJoin('class', name);
}

return self.renderToken(tokens, idx, _options, env, self);
return slf.renderToken(tokens, idx, _options, env, slf);
}

options = options || {};
Expand Down Expand Up @@ -55,7 +57,7 @@ module.exports = function container_plugin(md, name, options) {

markup = state.src.slice(start, pos);
params = state.src.slice(pos, max);
if (!validate(params)) { return false; }
if (!validate(params, markup)) { return false; }

// Since start is found, we can report success here in validation mode
//
Expand Down Expand Up @@ -144,4 +146,4 @@ module.exports = function container_plugin(md, name, options) {
};

},{}]},{},[1])(1)
});
});
3 changes: 1 addition & 2 deletions dist/markdown-it-container.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 58bc8d7

Please sign in to comment.