Skip to content

Commit c7ed0a4

Browse files
committed
feat: wrap $...$ for typst code
1 parent eb9b683 commit c7ed0a4

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

app/pages/ocr.vue

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,8 @@ function clear() {
7878
7979
async function copyAsTypst() {
8080
try {
81-
const typstCode = convertToTypst(latexCode.value)
81+
let typstCode = convertToTypst(latexCode.value)
82+
typstCode = wrapCode(typstCode, '$...$')
8283
await navigator.clipboard.writeText(typstCode)
8384
toast?.add({
8485
title: t('typstCode') + ' ' + t('copied'),

0 commit comments

Comments
 (0)