GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — tools: update to mdast-util-to-hast v3.0.2 · nodejs/node@9d92887

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • tools/doc
    • html.js
    • package-lock.json
    • package.json
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎tools/doc/html.js‎

Copy file name to clipboardExpand all lines: tools/doc/html.js
+1-21Lines changed: 1 addition & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,7 @@ function linkJsTypeDocs(text) {
161161

162162
// Preprocess headers, stability blockquotes, and YAML blocks.
163163
function preprocessElements({ filename }) {
164-
return (tree, file) => {
164+
return (tree) => {
165165
const STABILITY_RE = /(.*:)\s*(\d)([\s\S]*)/;
166166
let headingIndex = -1;
167167
let heading = null;
@@ -170,26 +170,6 @@ function preprocessElements({ filename }) {
170170
if (node.type === 'heading') {
171171
headingIndex = index;
172172
heading = node;
173-
174-
// Ensure optional API parameters are not treated as links by
175-
// collapsing all of heading into a single text node.
176-
if (heading.children.length > 1) {
177-
const position = {
178-
start: heading.children[0].position.start,
179-
end: heading.position.end
180-
};
181-
182-
heading.children = [{
183-
type: 'text',
184-
value: file.contents.slice(
185-
position.start.offset, position.end.offset)
186-
.replace('&lt;', '<')
187-
.replace('&gt;', '>')
188-
.replace(/\\(.{1})/g, '$1'),
189-
position
190-
}];
191-
}
192-
193173
} else if (node.type === 'html' && common.isYAMLBlock(node.value)) {
194174
node.value = parseYAML(node.value);
195175

Collapse file

‎tools/doc/package-lock.json‎

Copy file name to clipboardExpand all lines: tools/doc/package-lock.json
+68-34Lines changed: 68 additions & 34 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Collapse file

‎tools/doc/package.json‎

Copy file name to clipboardExpand all lines: tools/doc/package.json
+3-3Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,14 +12,14 @@
1212
"remark-html": "^7.0.0",
1313
"remark-parse": "^5.0.0",
1414
"remark-rehype": "^3.0.0",
15-
"to-vfile": "^5.0.0",
15+
"to-vfile": "^5.0.1",
1616
"unified": "^7.0.0",
1717
"unist-util-find": "^1.0.1",
1818
"unist-util-select": "^1.5.0",
19-
"unist-util-visit": "^1.3.1"
19+
"unist-util-visit": "^1.4.0"
2020
},
2121
"devDependencies": {
22-
"js-yaml": "^3.5.2"
22+
"js-yaml": "^3.12.2"
2323
},
2424
"optionalDependencies": {},
2525
"bin": "./generate.js"

0 commit comments

Comments
0 (0)
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.