上一页 1 ··· 13 14 15 16 17 18 19 20 21 ··· 25 下一页
摘要: MyCounter.astro: <script> const template = ` <style> * { font-size: 200%; } span { width: 4rem; display: inline-block; text-align: center; } button { 阅读全文
posted @ 2024-08-07 22:13 卓能文 阅读(46) 评论(0) 推荐(0)
摘要: 先创建AstroHeart.astro: <astro-heart> <button aria-label="Heart">💜</button> × <span>0</span> </astro-heart> <script> // Define the behaviour for our new 阅读全文
posted @ 2024-08-07 20:33 卓能文 阅读(52) 评论(0) 推荐(0)
摘要: import Editor from "@monaco-editor/react"; import { useState } from "react"; import Markdown from "react-markdown"; import rehypeHighlight from "rehyp 阅读全文
posted @ 2024-08-06 16:03 卓能文 阅读(81) 评论(0) 推荐(0)
摘要: 参见下面test.md示例: # My markdown document ```{=typst} #let foob(x) = { x + x } #foob(2) ``` this is `raw #(2 + 3) typst`{=typst} 转换并编译: pandoc test.md -o 阅读全文
posted @ 2024-08-06 08:48 卓能文 阅读(247) 评论(0) 推荐(0)
摘要: 采用了@monaco-editor/react进行编辑,react-markdown预览 import Editor from "@monaco-editor/react"; import { useState } from "react"; import Markdown from "react- 阅读全文
posted @ 2024-08-06 01:00 卓能文 阅读(290) 评论(0) 推荐(0)
摘要: pnpm create farm@latest #选择vue3 cd project pnpm i @kangc/v-md-editor@next 修改index.ts: import { createApp } from 'vue'; // import './style.css'; import 阅读全文
posted @ 2024-08-05 16:47 卓能文 阅读(208) 评论(0) 推荐(0)
摘要: cherry-markdown是一个TS编写的markdown编辑器。 import "cherry-markdown/dist/cherry-markdown.css"; <cherry-mark> <textarea></textarea> </cherry-mark> <script> imp 阅读全文
posted @ 2024-08-04 18:36 卓能文 阅读(185) 评论(0) 推荐(0)
摘要: md-editor-rt是一个react markdown编辑框架。 import { useState } from "react"; import { MdEditor } from "md-editor-rt"; import "md-editor-rt/lib/style.css"; exp 阅读全文
posted @ 2024-08-04 15:52 卓能文 阅读(226) 评论(0) 推荐(0)
摘要: import { useForm } from "react-hook-form"; import { zodResolver } from "@hookform/resolvers/zod"; import i18next from "i18next"; import { z } from "zo 阅读全文
posted @ 2024-08-03 15:18 卓能文 阅读(96) 评论(0) 推荐(0)
摘要: 地址:Just-validate package.json: { "name": "vanilla-template", "version": "1.0.0", "type": "module", "scripts": { "dev": "farm", "start": "farm", "build 阅读全文
posted @ 2024-07-31 11:16 卓能文 阅读(58) 评论(0) 推荐(0)
上一页 1 ··· 13 14 15 16 17 18 19 20 21 ··· 25 下一页