Skip to content

Commit

Permalink
Add preliminary preview to markdown editor
Browse files Browse the repository at this point in the history
  • Loading branch information
guerler committed Jan 19, 2025
1 parent cbd9382 commit a9215ad
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion client/src/components/Markdown/Editor/CellEditor.vue
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,12 @@
<hr class="solid m-0" />
<div class="d-flex my-1 mx-3">
<span class="cell-name small text-primary">{{ cell.name }}</span>
<CellCode :model-value="cell.content" :mode="getMode(cell.name)" class="ml-2" />
<div class="ml-2 w-100">
<MarkdownDefault v-if="cell.name === 'markdown'" :content="cell.content" />
<MarkdownVega v-else-if="cell.name === 'vega'" :content="cell.content" />
<MarkdownVitessce v-else-if="cell.name === 'vitessce'" :content="cell.content" />
<CellCode :model-value="cell.content" :mode="getMode(cell.name)" />
</div>
</div>
<hr class="solid m-0" />
</div>
Expand All @@ -18,6 +23,9 @@ import { ref } from "vue";
import { parseMarkdown } from "@/components/Markdown/parse";
import MarkdownDefault from "../Sections/MarkdownDefault.vue";
import MarkdownVega from "../Sections/MarkdownVega.vue";
import MarkdownVitessce from "../Sections/MarkdownVitessce.vue";
import CellButtonAdd from "./CellButtonAdd.vue";
import CellCode from "./CellCode.vue";
Expand Down

0 comments on commit a9215ad

Please sign in to comment.