Skip to content

Commit

Permalink
use embed
Browse files Browse the repository at this point in the history
  • Loading branch information
Ovler-Young committed Apr 10, 2022
1 parent 4c4de2a commit 68b6351
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,10 @@ async function main(blockId: string) {

let newBlockContent = "";
if (!pageRegx.test(firstLine)) {
newBlockContent = block.content.replace(firstLine, `[[${firstLine}]]`);
newBlockContent = block.content.replace(
firstLine,
`{{embed [[${firstLine}]]}}`
);
}

await createPageIfNotExist(pageName);
Expand Down

0 comments on commit 68b6351

Please sign in to comment.