- tr (799)
- th[scope="row"] (457)
- td (312)
- table (231)
- td[style="text-align: center; background-color: rgb(255, 153, 153); vertical-align: top;"] (158)
- th[scope="row"][style="white-space: nowrap; vertical-align: top;"] (156)
- td[style="text-align: center; background-color: rgb(204, 255, 102); vertical-align: top;"] (119)
- kbd (117)
- table.properties (473)
- table.no-markdown (247)
- sub (48)
- table.fullwidth-table (1)
- table.properties (26:1)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"use strict"; | |
const fs = require("fs") | |
const path = require("path") | |
const jsdom = require("jsdom"); | |
const { JSDOM } = jsdom; | |
/* get all ".html" files under the given directory into an array */ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
let last = 0; // last millisecond recorded | |
let lineno = 0; // current output line number | |
const iterations = 15; | |
let count = 0; | |
function timeout() { | |
logline(new Date().getMilliseconds()); | |
count = count + 1; | |
if (count < iterations) { | |
setTimeout(timeout, 0); |
This document describes how we'll convert MDN's HTML content into Markdown. It's focused on the JavaScript docs (https://developer.mozilla.org/en-US/docs/Web/JavaScript) because converting that is our immediate goal: however, it should be useful for converting more doc sets in the future.
It tries to take a systematic approach to conversion by listing:
- every HTML element
- every HTML attribute
- every value for the
class
attribute encountered