Skip to content

Commit

Permalink
adjust createBlockIDs test + sample data
Browse files Browse the repository at this point in the history
  • Loading branch information
tyler-dot-earth committed Jun 11, 2024
1 parent f2b7deb commit 92fda91
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 12 deletions.
10 changes: 3 additions & 7 deletions src/compiler/createBlockIDs.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,6 @@ describe("replaceBlockIDs", () => {
foo ^block-id-1234
bar ^block-id-5678
below
^block-id-9999
`;

const result = replaceBlockIDs(EXPECTED_MARKDOWN);
Expand All @@ -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}
`);
});

Expand Down
13 changes: 8 additions & 5 deletions src/dg-testVault/015 Code blocks.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 %}
```

Expand All @@ -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
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

0 comments on commit 92fda91

Please sign in to comment.