@adminforth/markdown 1.6.0 → 1.7.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/build.log CHANGED
@@ -10,5 +10,5 @@ custom/package-lock.json
10
10
  custom/package.json
11
11
  custom/tsconfig.json
12
12
 
13
- sent 29,778 bytes received 115 bytes 59,786.00 bytes/sec
14
- total size is 29,346 speedup is 0.98
13
+ sent 29,849 bytes received 115 bytes 59,928.00 bytes/sec
14
+ total size is 29,417 speedup is 0.98
@@ -425,7 +425,7 @@ function markdownForUploadedFile(file: File, url: string): string {
425
425
 
426
426
  if (file.type?.startsWith('video/')) {
427
427
  const mediaType = file.type || 'video/mp4';
428
- return `<video width="400">\n<!-- For gif-like videos use: <video width="400" autoplay loop muted playsinline> -->\n <source src="${url}" type="${mediaType}">\n</video>`;
428
+ return `<figure>\n <!-- For gif-like videos use: <video width="500" autoplay loop muted playsinline> -->\n <video width="500" controls>\n <source src="${url}" type="${mediaType}">\n </video>\n <figcaption>Demo</figcaption>\n</figure>`;
429
429
  }
430
430
 
431
431
  // alert that file cant be uploaded
@@ -425,7 +425,7 @@ function markdownForUploadedFile(file: File, url: string): string {
425
425
 
426
426
  if (file.type?.startsWith('video/')) {
427
427
  const mediaType = file.type || 'video/mp4';
428
- return `<video width="400">\n<!-- For gif-like videos use: <video width="400" autoplay loop muted playsinline> -->\n <source src="${url}" type="${mediaType}">\n</video>`;
428
+ return `<figure>\n <!-- For gif-like videos use: <video width="500" autoplay loop muted playsinline> -->\n <video width="500" controls>\n <source src="${url}" type="${mediaType}">\n </video>\n <figcaption>Demo</figcaption>\n</figure>`;
429
429
  }
430
430
 
431
431
  // alert that file cant be uploaded
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@adminforth/markdown",
3
- "version": "1.6.0",
3
+ "version": "1.7.0",
4
4
  "description": "Markdown plugin for adminforth",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",