From 92fda9195dc2eea75a01cf0c1a6308e3aaa9080c Mon Sep 17 00:00:00 2001 From: Tyler Nieman Date: Mon, 10 Jun 2024 20:54:17 -0700 Subject: [PATCH] adjust createBlockIDs test + sample data --- src/compiler/createBlockIDs.test.ts | 10 +++------- src/dg-testVault/015 Code blocks.md | 13 ++++++++----- 2 files changed, 11 insertions(+), 12 deletions(-) diff --git a/src/compiler/createBlockIDs.test.ts b/src/compiler/createBlockIDs.test.ts index 9d4e196..b05ab68 100644 --- a/src/compiler/createBlockIDs.test.ts +++ b/src/compiler/createBlockIDs.test.ts @@ -8,9 +8,6 @@ describe("replaceBlockIDs", () => { foo ^block-id-1234 bar ^block-id-5678 - - below - ^block-id-9999 `; const result = replaceBlockIDs(EXPECTED_MARKDOWN); @@ -19,13 +16,12 @@ describe("replaceBlockIDs", () => { # header foo - { #block-id-1234} +{ #block-id-1234} + bar - { #block-id-5678} +{ #block-id-5678} - below - { #block-id-9999} `); }); diff --git a/src/dg-testVault/015 Code blocks.md b/src/dg-testVault/015 Code blocks.md index 1a6601d..d6fe2b6 100644 --- a/src/dg-testVault/015 Code blocks.md +++ b/src/dg-testVault/015 Code blocks.md @@ -7,7 +7,7 @@ Sample 1 ```jinja2 {{ highlight_text }}{% if highlight_location and highlight_location_url %} ([via]({{highlight_location_url}})){% elif highlight_location %} ({{highlight_location}}){% endif %} ^rwhi{{highlight_id}} {% if highlight_note %} -{{ highlight_note }} ^rwhi{{highlight_id}}_note +{{ highlight_note }} ^rwhi{{highlight_id}}-note {% endif %} ``` @@ -17,7 +17,10 @@ In medieval Latin a florilegium (plural florilegia) was a compilation of excerpt The word is from the Latin flos (flower) and legere (to gather): literally a gathering of flowers, or collection of fine extracts from the body of a larger work. ([via](https://en.wikipedia.org/wiki/Florilegium)) ^rwhi724352030 ``` -And for sanity, here's some block references outside of code blocks: -foobar ^test-123 -and another below -^test-456 \ No newline at end of file +Sample 3 +``` +This codeblock has a transclusion syntax in it. +Check it out: ![[001 Links]] +``` + +And for sanity, here's some block references outside of code blocks: foobar ^test-123 \ No newline at end of file