Skip to content

Commit

Permalink
yes, even more verbose cleaning
Browse files Browse the repository at this point in the history
  • Loading branch information
kmlbgn committed Jan 4, 2024
1 parent 81cf45f commit 32d5e6b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
4 changes: 0 additions & 4 deletions src/plugins/internalLinks.ts
Original file line number Diff line number Diff line change
Expand Up @@ -61,10 +61,6 @@ function convertInternalLink(
hrefFromNotion = hrefFromNotion.substring(lastSpecialCharIndex + 1);
}

verbose(
`Link parsong: [InternalLinkPlugin] Converting ${markdownLink} to ${hrefFromNotion}`
);

const pages = context.pages;
// find the page where pageId matches hrefFromNotion
const targetPage = pages.find(p => {
Expand Down
4 changes: 2 additions & 2 deletions src/transform.ts
Original file line number Diff line number Diff line change
Expand Up @@ -250,11 +250,11 @@ function doLinkFixes(
if (newMarkdown !== originalLinkMarkdown) {
markdown = markdown.replace(originalLinkMarkdown, newMarkdown);
verbose(
`Link parsing: plugin "${plugin.name}" transformed link: ${originalLinkMarkdown}-->${newMarkdown}`
`Link parsing: ["${plugin.name}"] Converted "${originalLinkMarkdown}" to "${newMarkdown}"`
);
return true; // the first plugin that matches and does something wins
} else {
verbose(`Link parsing: plugin "${plugin.name}" did not change this url`);
verbose(`Link parsing: ["${plugin.name}"] URL unchanged`);
return false;
}
});
Expand Down

0 comments on commit 32d5e6b

Please sign in to comment.