diff --git a/CHANGELOG.md b/CHANGELOG.md index 7bbf9d6..007352c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,7 @@ +# 1.0.8 +- Fixed code node handling - Thanks to @TRiBotWillB +- Bumped dependencies + # 1.0.7 - Added stackblitz configuration - Bumped dependencies diff --git a/README.md b/README.md index 9c10f44..07306f8 100644 --- a/README.md +++ b/README.md @@ -181,9 +181,7 @@ Custom blockquote and code tags (`
`, `
`):
 
 
 
 ```
 
diff --git a/package.json b/package.json
index bab2da4..f0562be 100644
--- a/package.json
+++ b/package.json
@@ -1,6 +1,6 @@
 {
     "name": "nuxt-strapi-blocks-renderer",
-    "version": "1.0.7",
+    "version": "1.0.8",
     "description": "Renderer for the strapi CMS blocks text content element.",
     "license": "MIT",
     "repository": {
@@ -38,26 +38,29 @@
         "test:watch": "vitest watch"
     },
     "dependencies": {
-        "@nuxt/kit": "^3.12.2",
+        "@nuxt/kit": "^3.12.3",
         "defu": "^6.1.4"
     },
     "devDependencies": {
-        "@nuxt/devtools": "^1.3.7",
+        "@nuxt/devtools": "^1.3.9",
         "@nuxt/eslint-config": "^0.3.13",
-        "@nuxt/module-builder": "^0.8.0",
-        "@nuxt/schema": "^3.12.2",
+        "@nuxt/module-builder": "^0.8.1",
+        "@nuxt/schema": "^3.12.3",
         "@nuxt/test-utils": "^3.13.1",
         "@stylistic/eslint-plugin": "^2.3.0",
-        "@types/node": "^20.14.9",
-        "@typescript-eslint/eslint-plugin": "^7.14.1",
+        "@types/node": "^20.14.10",
+        "@typescript-eslint/eslint-plugin": "^7.16.0",
         "eslint": "^8.57.0",
-        "nuxt": "^3.12.2",
-        "typescript": "^5.5.2",
+        "nuxt": "^3.12.3",
+        "typescript": "^5.5.3",
         "vitest": "^1.6.0",
         "vue": "^3.4.31",
         "vue-eslint-parser": "^9.4.3",
-        "vue-tsc": "^2.0.22"
+        "vue-tsc": "^2.0.26"
     },
+    "keywords": [
+        "nuxt", "nuxt3", "nuxtjs", "nuxt-module", "strapi", "strapi-cms", "json", "blocks"
+    ],
     "packageManager": "npm@10.2.4",
     "engines": {
         "node": "^18.x || ^20.x"
diff --git a/playground/custom/components/blocks/StrapiBlocksTextCodeNode.vue b/playground/custom/components/blocks/StrapiBlocksTextCodeNode.vue
index d0a98fc..4056422 100644
--- a/playground/custom/components/blocks/StrapiBlocksTextCodeNode.vue
+++ b/playground/custom/components/blocks/StrapiBlocksTextCodeNode.vue
@@ -1,5 +1,3 @@
 
diff --git a/test/basic.test.ts b/test/basic.test.ts
index 209c42f..e4ed225 100644
--- a/test/basic.test.ts
+++ b/test/basic.test.ts
@@ -66,7 +66,7 @@ describe('Basic blocks text rendering', async (): Promise => {
     it('Renders the code node', async (): Promise => {
         const html: string = await fetchPage();
 
-        expect(html).toContain('
        Code\n    
'); + expect(html).toContain('
Code
'); }); it('Renders the image node', async (): Promise => { diff --git a/test/custom.test.ts b/test/custom.test.ts index e677a7f..75d0240 100644 --- a/test/custom.test.ts +++ b/test/custom.test.ts @@ -69,7 +69,7 @@ describe('Custom blocks text rendering', async (): Promise => { it('Renders the custom code node', async (): Promise => { const html: string = await fetchPage(); - expect(html).toContain('
        Code\n    
'); + expect(html).toContain('
Code
'); }); it('Renders the custom image node', async (): Promise => { diff --git a/test/fixtures/custom/components/blocks/StrapiBlocksTextCodeNode.vue b/test/fixtures/custom/components/blocks/StrapiBlocksTextCodeNode.vue index d0a98fc..4056422 100644 --- a/test/fixtures/custom/components/blocks/StrapiBlocksTextCodeNode.vue +++ b/test/fixtures/custom/components/blocks/StrapiBlocksTextCodeNode.vue @@ -1,5 +1,3 @@