Skip to content

Commit

Permalink
archive
Browse files Browse the repository at this point in the history
  • Loading branch information
morgan3d committed Dec 12, 2024
1 parent 6c81cb7 commit 63f6d51
Show file tree
Hide file tree
Showing 6 changed files with 26 additions and 16 deletions.
14 changes: 10 additions & 4 deletions 1.17/markdeep.js
Original file line number Diff line number Diff line change
Expand Up @@ -377,13 +377,18 @@ var STYLESHEET = entag('style',
'margin:auto' +
'}' +

'.md table.longtable th{' +
'top:0;' +
'position:sticky' +
'}' +

'.md table.calendar{' +
'width:100%;' +
'margin:auto;' +
'font-size:11px;' +
'font-family:Verdana,Helvetica,Arial,sans-serif' +
'}' +

'.md table.calendar th{' +
'font-size:16px' +
'}' +
Expand Down Expand Up @@ -1845,10 +1850,10 @@ function replaceTables(s, protect) {

row = trimTableRowEnds(row);
var i = 0;
result += entag('tr', '<' + tag + columnStyle[0] + '> ' +
result += entag('tr', '<' + tag + ' ' + columnStyle[0] + '> ' +
row.rp(/ *\| */g, function () {
++i;
return ' </' + tag + '><' + tag + columnStyle[i] + '> ';
return ' </' + tag + '><' + tag + ' ' + (columnStyle[i] || '') + '> ';
}) + ' </' + tag + '>') + '\n';

// Skip the header-separator row
Expand All @@ -1858,7 +1863,7 @@ function replaceTables(s, protect) {
}
}

result = entag('table', result, protect('class="table"'));
result = entag('table', result, protect('class="table' + (rowArray.length >= 15 ? ' longtable' : '') + '"'));

if (caption) {
var processedCaption = createTarget(caption, protect);
Expand All @@ -1870,6 +1875,7 @@ function replaceTables(s, protect) {
}
}

console.log(result);
return entag('div', result, "class='table'");
});

Expand Down
2 changes: 1 addition & 1 deletion 1.17/markdeep.min.js

Large diffs are not rendered by default.

5 changes: 2 additions & 3 deletions 1.17/slate.css
Original file line number Diff line number Diff line change
Expand Up @@ -102,8 +102,8 @@ body#md {
}


/* Darkmode, wide screen: TOC on side */
@media screen and (min-device-width: 600px) {
/* Wide screen: TOC on side */
@media screen and (min-width: 750px) {
.md .longTOC {
display: block;
white-space: nowrap;
Expand Down Expand Up @@ -138,7 +138,6 @@ body#md {
font-size: 15px;
}


.md svg.diagram {
stroke: #ccc;
fill: #ccc;
Expand Down
14 changes: 10 additions & 4 deletions latest/markdeep.js
Original file line number Diff line number Diff line change
Expand Up @@ -377,13 +377,18 @@ var STYLESHEET = entag('style',
'margin:auto' +
'}' +

'.md table.longtable th{' +
'top:0;' +
'position:sticky' +
'}' +

'.md table.calendar{' +
'width:100%;' +
'margin:auto;' +
'font-size:11px;' +
'font-family:Verdana,Helvetica,Arial,sans-serif' +
'}' +

'.md table.calendar th{' +
'font-size:16px' +
'}' +
Expand Down Expand Up @@ -1845,10 +1850,10 @@ function replaceTables(s, protect) {

row = trimTableRowEnds(row);
var i = 0;
result += entag('tr', '<' + tag + columnStyle[0] + '> ' +
result += entag('tr', '<' + tag + ' ' + columnStyle[0] + '> ' +
row.rp(/ *\| */g, function () {
++i;
return ' </' + tag + '><' + tag + columnStyle[i] + '> ';
return ' </' + tag + '><' + tag + ' ' + (columnStyle[i] || '') + '> ';
}) + ' </' + tag + '>') + '\n';

// Skip the header-separator row
Expand All @@ -1858,7 +1863,7 @@ function replaceTables(s, protect) {
}
}

result = entag('table', result, protect('class="table"'));
result = entag('table', result, protect('class="table' + (rowArray.length >= 15 ? ' longtable' : '') + '"'));

if (caption) {
var processedCaption = createTarget(caption, protect);
Expand All @@ -1870,6 +1875,7 @@ function replaceTables(s, protect) {
}
}

console.log(result);
return entag('div', result, "class='table'");
});

Expand Down
2 changes: 1 addition & 1 deletion latest/markdeep.min.js

Large diffs are not rendered by default.

5 changes: 2 additions & 3 deletions latest/slate.css
Original file line number Diff line number Diff line change
Expand Up @@ -102,8 +102,8 @@ body#md {
}


/* Darkmode, wide screen: TOC on side */
@media screen and (min-device-width: 600px) {
/* Wide screen: TOC on side */
@media screen and (min-width: 750px) {
.md .longTOC {
display: block;
white-space: nowrap;
Expand Down Expand Up @@ -138,7 +138,6 @@ body#md {
font-size: 15px;
}


.md svg.diagram {
stroke: #ccc;
fill: #ccc;
Expand Down

0 comments on commit 63f6d51

Please sign in to comment.