Skip to content

Commit

Permalink
archive
Browse files Browse the repository at this point in the history
  • Loading branch information
morgan3d committed Oct 3, 2021
1 parent 0978ea3 commit d92891d
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 12 deletions.
5 changes: 2 additions & 3 deletions 1.13/markdeep.js
Original file line number Diff line number Diff line change
Expand Up @@ -2613,9 +2613,7 @@ function markdeepToHTML(str, elementMode) {
var highlighted = result.value;

// Mark each line as a span to support line numbers
console.log(highlighted);
highlighted = highlighted.rp(/^(.*)$/gm, entag('span', '', 'class="line"') + '$1');
console.log(highlighted);

if (cssSubClass) {
highlighted = entag('div', highlighted, 'class="' + cssSubClass + '"');
Expand Down Expand Up @@ -2649,7 +2647,8 @@ function markdeepToHTML(str, elementMode) {
str = str.rp(/(<code\b.*?<\/code>)/gi, protector);

// Remove XML/HTML COMMENTS
str = str.rp(/<!-(-+)[^-][\s\S]*?-->/g, '');
// https://html.spec.whatwg.org/multipage/syntax.html#comments
str = str.rp(/<!--((?!->|>)[\s\S]*?)-->/g, '');

str = replaceDiagrams(str);

Expand Down
5 changes: 2 additions & 3 deletions 1.13/markdeep.min.js
Original file line number Diff line number Diff line change
Expand Up @@ -2613,9 +2613,7 @@ function markdeepToHTML(str, elementMode) {
var highlighted = result.value;

// Mark each line as a span to support line numbers
console.log(highlighted);
highlighted = highlighted.rp(/^(.*)$/gm, entag('span', '', 'class="line"') + '$1');
console.log(highlighted);

if (cssSubClass) {
highlighted = entag('div', highlighted, 'class="' + cssSubClass + '"');
Expand Down Expand Up @@ -2649,7 +2647,8 @@ function markdeepToHTML(str, elementMode) {
str = str.rp(/(<code\b.*?<\/code>)/gi, protector);

// Remove XML/HTML COMMENTS
str = str.rp(/<!-(-+)[^-][\s\S]*?-->/g, '');
// https://html.spec.whatwg.org/multipage/syntax.html#comments
str = str.rp(/<!--((?!->|>)[\s\S]*?)-->/g, '');

str = replaceDiagrams(str);

Expand Down
5 changes: 2 additions & 3 deletions latest/markdeep.js
Original file line number Diff line number Diff line change
Expand Up @@ -2613,9 +2613,7 @@ function markdeepToHTML(str, elementMode) {
var highlighted = result.value;

// Mark each line as a span to support line numbers
console.log(highlighted);
highlighted = highlighted.rp(/^(.*)$/gm, entag('span', '', 'class="line"') + '$1');
console.log(highlighted);

if (cssSubClass) {
highlighted = entag('div', highlighted, 'class="' + cssSubClass + '"');
Expand Down Expand Up @@ -2649,7 +2647,8 @@ function markdeepToHTML(str, elementMode) {
str = str.rp(/(<code\b.*?<\/code>)/gi, protector);

// Remove XML/HTML COMMENTS
str = str.rp(/<!-(-+)[^-][\s\S]*?-->/g, '');
// https://html.spec.whatwg.org/multipage/syntax.html#comments
str = str.rp(/<!--((?!->|>)[\s\S]*?)-->/g, '');

str = replaceDiagrams(str);

Expand Down
5 changes: 2 additions & 3 deletions latest/markdeep.min.js
Original file line number Diff line number Diff line change
Expand Up @@ -2613,9 +2613,7 @@ function markdeepToHTML(str, elementMode) {
var highlighted = result.value;

// Mark each line as a span to support line numbers
console.log(highlighted);
highlighted = highlighted.rp(/^(.*)$/gm, entag('span', '', 'class="line"') + '$1');
console.log(highlighted);

if (cssSubClass) {
highlighted = entag('div', highlighted, 'class="' + cssSubClass + '"');
Expand Down Expand Up @@ -2649,7 +2647,8 @@ function markdeepToHTML(str, elementMode) {
str = str.rp(/(<code\b.*?<\/code>)/gi, protector);

// Remove XML/HTML COMMENTS
str = str.rp(/<!-(-+)[^-][\s\S]*?-->/g, '');
// https://html.spec.whatwg.org/multipage/syntax.html#comments
str = str.rp(/<!--((?!->|>)[\s\S]*?)-->/g, '');

str = replaceDiagrams(str);

Expand Down

0 comments on commit d92891d

Please sign in to comment.