Skip to content

Commit

Permalink
[ci:force] fix code
Browse files Browse the repository at this point in the history
  • Loading branch information
DenysVuika committed Jan 25, 2024
1 parent 2b6be14 commit c5d2e88
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion tools/doc/tools/toc.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ const path = require('path');
const fs = require('fs');
const remark = require('remark');
const replaceSection = require('mdast-util-heading-range');
const { toString } = require('mdast-util-to-string');
const toString = require('mdast-util-to-string');
const ejs = require('ejs');
const unist = require('../unistHelpers');
const mdNav = require('../mdNav');
Expand Down
6 changes: 6 additions & 0 deletions tools/doc/unistHelpers.js
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,12 @@ module.exports = {
children: content
};
},
makeInlineCode: function (codeText) {
return {
"type": "inlineCode",
"value": codeText
}
},
makeImage: function (url, alt) {
return {
type: 'image',
Expand Down

0 comments on commit c5d2e88

Please sign in to comment.