Skip to content

Commit

Permalink
Bump version 4.2.2
Browse files Browse the repository at this point in the history
  • Loading branch information
reginald-ck-hung committed May 13, 2023
1 parent 3299f47 commit 2b06e83
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 7 deletions.
10 changes: 8 additions & 2 deletions dist/markdown-it-multimd-table.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/*! markdown-it-multimd-table 4.2.1 https://github.com/redbug312/markdown-it-multimd-table @license MIT */
/*! markdown-it-multimd-table 4.2.2 https://github.com/redbug312/markdown-it-multimd-table @license MIT */
(function(global, factory) {
typeof exports === "object" && typeof module !== "undefined" ? module.exports = factory() : typeof define === "function" && define.amd ? define(factory) : (global = typeof globalThis !== "undefined" ? globalThis : global || self,
global.markdownit = factory());
Expand Down Expand Up @@ -361,9 +361,15 @@
if (tableToken.meta.cap) {
token = state.push("caption_open", "caption", 1);
token.map = tableToken.meta.cap.map;
var attrs = [];
var capSide = tableToken.meta.cap.first ? "top" : "bottom";
/* Null is possible when disabled the option autolabel */ if (tableToken.meta.cap.label !== null) {
token.attrs = [ [ "id", tableToken.meta.cap.label ] ];
attrs.push([ "id", tableToken.meta.cap.label ]);
}
/* Add caption-side inline-CSS to <caption> tag, if caption is below the markdown table. */ if (capSide !== "top") {
attrs.push([ "style", "caption-side: " + capSide ]);
}
token.attrs = attrs;
token = state.push("inline", "", 0);
token.content = tableToken.meta.cap.text;
token.map = tableToken.meta.cap.map;
Expand Down
4 changes: 2 additions & 2 deletions dist/markdown-it-multimd-table.min.js

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

4 changes: 2 additions & 2 deletions package-lock.json

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

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "markdown-it-multimd-table",
"version": "4.2.1",
"version": "4.2.2",
"description": "Multimarkdown table syntax plugin for markdown-it markdown parser",
"keywords": [
"markdown-it-plugin",
Expand Down

0 comments on commit 2b06e83

Please sign in to comment.