Skip to content

Commit

Permalink
Merge pull request #3 from Hiroshiba/hiho-counter-pr-e5563370
Browse files Browse the repository at this point in the history
VOICEVOX#2419 の変更提案プルリクエスト
  • Loading branch information
jdkfx authored Dec 22, 2024
2 parents 223a78e + e556337 commit 9beb661
Showing 1 changed file with 3 additions and 12 deletions.
15 changes: 3 additions & 12 deletions src/components/Dialog/HelpDialog/HelpMarkdownViewSection.vue
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
</template>

<script setup lang="ts">
import { onMounted, ref, watch } from "vue";
import { computed } from "vue";
import BaseDocumentView from "@/components/Base/BaseDocumentView.vue";
import BaseScrollArea from "@/components/Base/BaseScrollArea.vue";
import { useMarkdownIt } from "@/plugins/markdownItPlugin";
Expand All @@ -21,20 +21,11 @@ const props = defineProps<{
markdown: string;
}>();
const documentHtml = ref("");
const md = useMarkdownIt();
onMounted(async () => {
documentHtml.value = md.render(props.markdown);
const documentHtml = computed(() => {
return md.render(props.markdown);
});
watch(
() => props.markdown,
(newMarkdown) => {
documentHtml.value = md.render(newMarkdown);
},
);
</script>

<style scoped lang="scss">
Expand Down

0 comments on commit 9beb661

Please sign in to comment.