Skip to content

Commit

Permalink
Upgrade packages
Browse files Browse the repository at this point in the history
  • Loading branch information
darashi committed Mar 7, 2024
1 parent fffa8c9 commit b1e5017
Show file tree
Hide file tree
Showing 3 changed files with 3,299 additions and 11,015 deletions.
4 changes: 2 additions & 2 deletions lib/parser.mjs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import * as commonmark from 'commonmark';
import fontoxpath from 'fontoxpath';
import parse5 from 'parse5';
import { parse } from 'parse5';
import xmlserializer from 'xmlserializer';
import { sync as xmlParser } from 'slimdom-sax-parser';

Expand All @@ -26,7 +26,7 @@ export default class SPARQLetParser {
};

function parseHtml(html) {
const xhtml = xmlserializer.serializeToString(parse5.parse(html));
const xhtml = xmlserializer.serializeToString(parse(html));
const doc = xmlParser(xhtml);
const title = evaluateXPathToString('//h1[1]/text()', doc);

Expand Down
Loading

0 comments on commit b1e5017

Please sign in to comment.