diff --git a/pipeline.ori b/pipeline.ori index c887ea1..2a62bcd 100644 --- a/pipeline.ori +++ b/pipeline.ori @@ -45,12 +45,12 @@ withSummary: Tree.map(asHtml, extractSummary.js) /* - Removing private content coming below the html comment `` + Removing private content coming below the html paragraph `

—private-below—

` Only remove this if in public mode. So if this file is called as `site.ori("all")`, then final output is `withSummary`, otherwise it's `privateRemoved`. */ privateRemoved: Tree.map(withSummary, removePrivate.js) - final: (all ? withSummary : privateRemoved) → (tree) => Tree.mapExtension(tree, '.html→') + final: (all ? withSummary : privateRemoved ) → (tree) => Tree.mapExtension(tree, '.html→') renderedPages: Tree.map(final, (page) => (page, all)) diff --git a/removePrivate.js b/removePrivate.js index b3739fc..db7b7da 100644 --- a/removePrivate.js +++ b/removePrivate.js @@ -1,4 +1,4 @@ -const reg = /^(?.+).+$/s +const reg = /^(?.+)

—private-below—<\/p>.+$/s export default (doc) => { const result = reg.exec(doc._body); if (result) {