Skip to content

Commit

Permalink
Update deps - bump 0.1.5
Browse files Browse the repository at this point in the history
  • Loading branch information
jordojordo committed Sep 28, 2024
1 parent 706448b commit b0ef18b
Show file tree
Hide file tree
Showing 4 changed files with 1,023 additions and 1,050 deletions.
2 changes: 1 addition & 1 deletion .eslintrc.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ module.exports = {
'newline-per-chained-call': ['warn', { 'ignoreChainWithDepth': 4 }],
'no-caller': 'warn',
'no-cond-assign': ['warn', 'except-parens'],
'no-console': 'warn',
'no-console': 'off',
'no-debugger': 'warn',
'no-eq-null': 'warn',
'no-eval': 'warn',
Expand Down
48 changes: 24 additions & 24 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "thothscript",
"version": "0.1.4",
"version": "0.1.5",
"private": true,
"type": "module",
"scripts": {
Expand All @@ -11,39 +11,39 @@
"test:e2e": "playwright test",
"build-only": "vite build",
"type-check": "vue-tsc --build --force",
"lint": "eslint . --ext .vue,.js,.jsx,.cjs,.mjs,.ts,.tsx,.cts,.mts --fix --ignore-path .gitignore",
"lint": "eslint . --fix",
"format": "prettier --write src/"
},
"dependencies": {
"mitt": "^3.0.1",
"pinia": "^2.1.7",
"vue": "^3.4.21",
"vue-router": "^4.3.0"
"pinia": "^2.2.2",
"vue": "^3.5.9",
"vue-router": "^4.4.5"
},
"devDependencies": {
"@gptscript-ai/gptscript": "^0.8.5",
"@rushstack/eslint-patch": "^1.8.0",
"@gptscript-ai/gptscript": "^0.9.4",
"@rushstack/eslint-patch": "^1.10.4",
"@tsconfig/node20": "^20.1.4",
"@types/dompurify": "^3.0.5",
"@types/jsdom": "^21.1.6",
"@types/node": "^20.12.13",
"@vitejs/plugin-vue": "^5.0.4",
"@types/jsdom": "^21.1.7",
"@types/node": "^22.7.3",
"@vitejs/plugin-vue": "^5.1.4",
"@vue/eslint-config-prettier": "^9.0.0",
"@vue/eslint-config-typescript": "^13.0.0",
"@vue/tsconfig": "^0.5.1",
"@vueuse/core": "^10.9.0",
"dompurify": "^3.1.3",
"eslint": "^8.57.0",
"eslint-plugin-playwright": "^1.6.1",
"eslint-plugin-vue": "^9.23.0",
"highlight.js": "^11.9.0",
"jsdom": "^24.0.0",
"marked": "^12.0.2",
"npm-run-all2": "^6.1.2",
"prettier": "^3.2.5",
"typescript": "~5.4.0",
"vite": "^5.2.8",
"vite-plugin-vue-devtools": "^7.0.25",
"vue-tsc": "^2.0.11"
"@vueuse/core": "^11.1.0",
"dompurify": "^3.1.7",
"eslint": "^8.57.1",
"eslint-plugin-playwright": "^1.6.2",
"eslint-plugin-vue": "^9.28.0",
"highlight.js": "^11.10.0",
"jsdom": "^25.0.1",
"marked": "^14.1.2",
"npm-run-all2": "^6.2.3",
"prettier": "^3.3.3",
"typescript": "~5.4.5",
"vite": "^5.4.8",
"vite-plugin-vue-devtools": "^7.4.6",
"vue-tsc": "^2.1.6"
}
}
4 changes: 3 additions & 1 deletion src/components/Markdown.vue
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,9 @@ const renderedMarkdown = computed(() => {
const renderer = new marked.Renderer();
// Custom renderer for code blocks
renderer.code = (code, language) => {
renderer.code = ({ text, lang }) => {
const code = text;
const language = lang;
const validLang = language && hljs.getLanguage(language) ? language : 'plaintext';
const highlightedCode = hljs.highlight(code, { language: validLang }).value;
const buttonId = generateId();
Expand Down
Loading

0 comments on commit b0ef18b

Please sign in to comment.