Skip to content

Commit

Permalink
Merge pull request #157 from chernodub/patch-1
Browse files Browse the repository at this point in the history
fix: parse `h1` from the whole `article`
  • Loading branch information
weareoutman authored Apr 7, 2022
2 parents dadc30a + aeb063a commit 3f2d65c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/server/utils/parseDocument.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { getCondensedText } from "./getCondensedText";
const HEADINGS = "h1, h2, h3";

export function parseDocument($: cheerio.Root): ParsedDocument {
const $pageTitle = $("article header h1").first();
const $pageTitle = $("article h1").first();
const pageTitle = $pageTitle.text();

const sections: ParsedDocumentSection[] = [];
Expand Down

0 comments on commit 3f2d65c

Please sign in to comment.