Skip to content

Commit

Permalink
fix: release 1.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
TorstenDittmann committed Sep 28, 2023
1 parent 281b92a commit 1d5a01d
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 5 deletions.
8 changes: 5 additions & 3 deletions apps/demo/src/routes/documentation/partials/+page.markdoc
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,11 @@ markdoc({

Here's an example of including the `header.md` file as a partial.

`{% partial file="header.md" /%}`

```md
<!-- ./src/routes/+page.markdoc -->
{% partial file="header.md" /%}
{ % partial file="header.md" /% }
```

### Passing variables
Expand All @@ -34,12 +36,12 @@ Partials are like any other tags, so you can pass variables as attributes to the

```md
<!-- ./src/routes/+page.markdoc -->
{% partial file="header.md" variables={name: "My header name"} /%}
{ % partial file="header.md" variables={name: "My header name"} /% }
```

and access the variables as you would in a regular Markdoc document:

```md
<!-- ./src/lib/partials/header.md -->
# {% $name %}
# { % $name % }
```
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion packages/process/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "svelte-markdoc-preprocess",
"version": "0.3.3",
"version": "1.0.0",
"description": "A Svelte preprocessor that allows you to use Markdoc.",
"type": "commonjs",
"keywords": [
Expand Down

0 comments on commit 1d5a01d

Please sign in to comment.