Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions CONTENT.md
Original file line number Diff line number Diff line change
Expand Up @@ -184,3 +184,10 @@ Lorem ipsum dolor sit amet consectetur.
```
{% icon icon="github" /%}
```

#### Only Light/Dark Theme

```
{% only_dark %}I am only shown in Dark Theme{% /only_dark %}
{% only_dark %}I am only shown in Light Theme{% /only_dark %}
```
2 changes: 1 addition & 1 deletion src/markdoc/nodes/Image.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
</script>

{#if inTable}
<img {src} {alt} {title} loading="lazy" />
<img {src} {alt} {title} loading="lazy" style:vertical-align="middle" />
{:else}
<div class="aw-media">
<img {src} {alt} {title} loading="lazy" />
Expand Down
1 change: 1 addition & 0 deletions src/markdoc/tags/Only_Dark.svelte
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
<span class="u-only-dark"><slot /></span>
1 change: 1 addition & 0 deletions src/markdoc/tags/Only_Light.svelte
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
<span class="u-only-light"><slot /></span>
2 changes: 2 additions & 0 deletions src/markdoc/tags/_Module.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,6 @@
export { default as Tabs } from './Tabs.svelte';
export { default as TabsItem } from './TabsItem.svelte';
export { default as Icon } from './Icon.svelte';
export { default as Only_Light } from './Only_Light.svelte';
export { default as Only_Dark } from './Only_Dark.svelte';
</script>
1 change: 1 addition & 0 deletions src/routes/docs/test/article/+page.markdoc
Original file line number Diff line number Diff line change
Expand Up @@ -150,6 +150,7 @@ Lorem ipsum dolor sit amet consectetur. Id nisi quam nisl iaculis semper nibh eg

## Sub title

{% multicode %}
```js
const sdk = require('node-appwrite');

Expand Down