Skip to content

Commit e0626ab

Browse files
committed
2 parents 0f2c993 + 8fa922c commit e0626ab

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

dist/remark/index.mjs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1658,7 +1658,11 @@ var parseParams = (s) => {
16581658
function remarkResistogram(options) {
16591659
const { dataDir = "data", files = {}, pluginId = "default" } = options;
16601660
return async (tree, file) => {
1661-
const pageText = mdastToPlainText(tree);
1661+
let pageText = mdastToPlainText(tree);
1662+
const fm = file.data && file.data.frontmatter || {};
1663+
if (fm.title) {
1664+
pageText = ` ${fm.title} ${pageText}`;
1665+
}
16621666
const nodesToProcess = [];
16631667
visit(tree, "paragraph", (node2, index, parent) => {
16641668
if (toString(node2).includes("%%RESIST")) {

0 commit comments

Comments
 (0)