33 IDocuNotionContext ,
44 IRegexMarkdownModification ,
55} from "./plugins/pluginTypes" ;
6- import { error , info , logDebug , verbose , warning } from "./log" ;
6+ import { error , info , logDebug , logDebugFn , verbose , warning } from "./log" ;
77import { NotionPage } from "./NotionPage" ;
88import { IDocuNotionConfig } from "./config/configuration" ;
99import { NotionBlock } from "./types" ;
@@ -27,7 +27,7 @@ export async function getMarkdownForPage(
2727
2828 const blocks = await context . getBlockChildren ( page . pageId ) ;
2929
30- logDebug ( "pull ", JSON . stringify ( blocks ) ) ;
30+ logDebugFn ( "markdown from page ", ( ) => JSON . stringify ( blocks , null , 2 ) ) ;
3131
3232 const body = await getMarkdownFromNotionBlocks ( context , config , blocks ) ;
3333 const frontmatter = getFrontMatter ( page ) ; // todo should be a plugin
@@ -217,6 +217,10 @@ function registerNotionToMarkdownCustomTransforms(
217217 config . plugins . forEach ( plugin => {
218218 if ( plugin . notionToMarkdownTransforms ) {
219219 plugin . notionToMarkdownTransforms . forEach ( transform => {
220+ logDebug (
221+ "registering custom transform" ,
222+ `${ plugin . name } for ${ transform . type } `
223+ ) ;
220224 docunotionContext . notionToMarkdown . setCustomTransformer (
221225 transform . type ,
222226 ( block : any ) => {
0 commit comments