Skip to content

Commit 851bfbe

Browse files
committed
Replace PDF parser with Markdown parser for official FAQs
- Add new markdown source file (FAQs_on_the_CRA__v12) - Create parse-official-faqs.js to parse markdown instead of PDF - Remove parse-official-faqs-pdf.js (old PDF parser) - Update link-resolver.js to handle both *italics* and _italics_ - Remove pdfjs-dist and jsdom dependencies The markdown version provides cleaner source content and eliminates the need for complex PDF text extraction logic.
1 parent a70184b commit 851bfbe

7 files changed

Lines changed: 3618 additions & 721 deletions

package-lock.json

Lines changed: 1 addition & 187 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
"main": "index.js",
66
"scripts": {
77
"update-cache": "node update-cache.js",
8+
"fetch-cra-text": "node scripts/fetch-cra-text.js",
89
"build": "eleventy",
910
"serve": "eleventy --serve",
1011
"watch": "eleventy --watch"
@@ -20,7 +21,6 @@
2021
"markdown-it": "^14.1.0",
2122
"markdown-it-footnote": "^4.0.0",
2223
"markdown-it-github-alerts": "^1.0.0",
23-
"markdown-it-plain-text": "^0.3.0",
24-
"pdfjs-dist": "^5.4.449"
24+
"markdown-it-plain-text": "^0.3.0"
2525
}
2626
}

0 commit comments

Comments
 (0)