Skip to content

Commit

Permalink
fixup! feat: Add support for mermaid.js rendering
Browse files Browse the repository at this point in the history
  • Loading branch information
juliusknorr committed Jul 31, 2023
1 parent efd2525 commit 08bf1f8
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions src/nodes/CodeBlockView.vue
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,8 @@
</div>
</div>
<div class="split-view">
<pre v-show="showCode"><code><NodeViewContent /></code></pre>
<div v-show="showPreview" ref="preview" />
<pre v-show="showCode" class="split-view__code"><code><NodeViewContent /></code></pre>
<div v-show="showPreview" ref="preview" class="split-view__preview" />
</div>
</NodeViewWrapper>
</template>
Expand Down Expand Up @@ -114,10 +114,16 @@ export default {
flex-direction: row;
justify-content: space-between;
align-items: stretch;
gap: 12px;
& > * {
flex: 1;
}
&__code {
display: flex;
justify-content: center;
}
}
.view-switch {
Expand Down

0 comments on commit 08bf1f8

Please sign in to comment.