Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(deps): update dependency prettier to v3 (#564)
* chore(deps): update dependency prettier to v3 * chore(deps): updated prettier --------- Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: Corentin Thomasset <corentin.thomasset74@gmail.com>
- Loading branch information
1 parent
144f86e
commit a2b9b15
Showing
3 changed files
with
10 additions
and
40 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,16 @@ | ||
<script setup lang="ts"> | ||
import { format } from 'prettier'; | ||
import htmlParser from 'prettier/parser-html'; | ||
import htmlParser from 'prettier/plugins/html'; | ||
import { useStorage } from '@vueuse/core'; | ||
import Editor from './editor/editor.vue'; | ||
import TextareaCopyable from '@/components/TextareaCopyable.vue'; | ||
const html = useStorage('html-wysiwyg-editor--html', '<h1>Hey!</h1><p>Welcome to this html wysiwyg editor</p>'); | ||
const formattedHtml = asyncComputed(() => format(html.value, { parser: 'html', plugins: [htmlParser] }), ''); | ||
</script> | ||
|
||
<template> | ||
<Editor v-model:html="html" /> | ||
<TextareaCopyable :value="format(html, { parser: 'html', plugins: [htmlParser] })" language="html" /> | ||
<TextareaCopyable :value="formattedHtml" language="html" /> | ||
</template> |
a2b9b15
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Successfully deployed to the following URLs:
it-tools – ./
it-tools-git-main-ctmsst.vercel.app
it-tools-ctmsst.vercel.app
it-tools.tech
it-tools.vercel.app