From 458ba136ed46564d3d9a72369e2325619c76fffa Mon Sep 17 00:00:00 2001
From: JanGuillermo
Date: Tue, 15 Sep 2020 20:02:58 -0700
Subject: [PATCH 1/7] :bookmark: Update version to 1.0.3
---
package-lock.json | 2 +-
package.json | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/package-lock.json b/package-lock.json
index a72dc51..26d91ee 100644
--- a/package-lock.json
+++ b/package-lock.json
@@ -1,6 +1,6 @@
{
"name": "vue3-markdown-it",
- "version": "1.0.2",
+ "version": "1.0.3",
"lockfileVersion": 1,
"requires": true,
"dependencies": {
diff --git a/package.json b/package.json
index 57ef554..9d84f2d 100644
--- a/package.json
+++ b/package.json
@@ -1,6 +1,6 @@
{
"name": "vue3-markdown-it",
- "version": "1.0.2",
+ "version": "1.0.3",
"author": "Jan Guillermo",
"description": "A Vue markdown-it wrapper plugin",
"license": "MIT",
From 452c6eb67ff1cd3ab6a0202bf39a03cbb04d54ef Mon Sep 17 00:00:00 2001
From: JanGuillermo
Date: Wed, 16 Sep 2020 16:46:47 -0700
Subject: [PATCH 2/7] :heavy_minus_sign: Remove markdown-it-strikethrough-alt
dependency
---
CHANGELOG.md | 5 +
README.md | 1 -
.../markdown-it-strikethrough-alt.spec.js | 14 --
__tests__/render.js | 2 -
package-lock.json | 145 +++++++++---------
package.json | 1 -
src/vue-markdown-it.js | 2 -
7 files changed, 79 insertions(+), 91 deletions(-)
delete mode 100644 __tests__/plugins/markdown-it-strikethrough-alt.spec.js
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 3da8e93..a7274da 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -4,6 +4,10 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
+## [1.0.3] - 2020-09-XX
+### Removed
+- `markdown-it-strikethrough-alt` dependency
+
## [1.0.2] - 2020-09-15
### Added
- Added information on README for including LaTeX + highlight.js styles
@@ -40,5 +44,6 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- [markdown-it-task-lists](https://github.com/revin/markdown-it-task-lists) - Add task lists
- [markdown-it-toc-done-right](https://github.com/nagaozen/markdown-it-toc-done-right) - Add table of contents
+[1.0.3]: https://github.com/JanGuillermo/vue3-markdown-it/compare/v1.0.2...v1.0.3
[1.0.2]: https://github.com/JanGuillermo/vue3-markdown-it/compare/v1.0.1...v1.0.2
[1.0.1]: https://github.com/JanGuillermo/vue3-markdown-it/releases/tag/v1.0.1
diff --git a/README.md b/README.md
index e88afac..5676a0f 100644
--- a/README.md
+++ b/README.md
@@ -24,7 +24,6 @@ npm install vue3-markdown-it
- [markdown-it-ins](https://github.com/markdown-it/markdown-it-ins) - Add `` tags
- [markdown-it-latex](https://github.com/tylingsoft/markdown-it-latex) - Add LaTeX formatting
- [markdown-it-mark](https://github.com/markdown-it/markdown-it-mark) - Add marking/highlighting
-- [markdown-it-strikethrough-alt](https://github.com/jay-hodgson/markdown-it-strikethrough-alt) - Add strikethrough
- [markdown-it-sub](https://github.com/markdown-it/markdown-it-sub) - Add subscript
- [markdown-it-sup](https://github.com/markdown-it/markdown-it-sup) - Add superscript
- [markdown-it-task-lists](https://github.com/revin/markdown-it-task-lists) - Add task lists
diff --git a/__tests__/plugins/markdown-it-strikethrough-alt.spec.js b/__tests__/plugins/markdown-it-strikethrough-alt.spec.js
deleted file mode 100644
index 07dda08..0000000
--- a/__tests__/plugins/markdown-it-strikethrough-alt.spec.js
+++ /dev/null
@@ -1,14 +0,0 @@
-import render from '#/render';
-
-describe('markdown-it-strikethrough-alt tests', () => {
- let source, result;
-
- it('should be able to support strikethrough', async () => {
- source = '--vue3-markdown-it sucks--';
- result = render(source);
-
- await global.wrapper.setProps({ source });
- expect(global.wrapper.html()).toContain(result);
- expect(global.wrapper.html()).toContain('');
- });
-});
diff --git a/__tests__/render.js b/__tests__/render.js
index 7c3790a..183966d 100644
--- a/__tests__/render.js
+++ b/__tests__/render.js
@@ -8,7 +8,6 @@ import MarkdownItHighlightjs from 'markdown-it-highlightjs';
import MarkdownItIns from 'markdown-it-ins';
import MarkdownItLatex from 'markdown-it-latex';
import MarkdownItMark from 'markdown-it-mark';
-import MarkdownItStrikethroughAlt from 'markdown-it-strikethrough-alt';
import MarkdownItSub from 'markdown-it-sub';
import MarkdownItSup from 'markdown-it-sup';
import MarkdownItTasklists from 'markdown-it-task-lists';
@@ -26,7 +25,6 @@ md.use(MarkdownItAbbr)
.use(MarkdownItIns)
.use(MarkdownItLatex)
.use(MarkdownItMark)
- .use(MarkdownItStrikethroughAlt)
.use(MarkdownItSub)
.use(MarkdownItSup)
.use(MarkdownItTasklists)
diff --git a/package-lock.json b/package-lock.json
index 26d91ee..c692e63 100644
--- a/package-lock.json
+++ b/package-lock.json
@@ -1737,6 +1737,7 @@
"resolved": "https://registry.npmjs.org/@types/mini-css-extract-plugin/-/mini-css-extract-plugin-0.9.1.tgz",
"integrity": "sha512-+mN04Oszdz9tGjUP/c1ReVwJXxSniLd7lF++sv+8dkABxVNthg6uccei+4ssKxRHGoMmPxdn7uBdJWONSJGTGQ==",
"dev": true,
+ "optional": true,
"requires": {
"@types/webpack": "*"
}
@@ -3446,6 +3447,79 @@
"webpack-chain": "^6.4.0",
"webpack-dev-server": "^3.11.0",
"webpack-merge": "^4.2.2"
+ },
+ "dependencies": {
+ "ansi-styles": {
+ "version": "4.2.1",
+ "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.2.1.tgz",
+ "integrity": "sha512-9VGjrMsG1vePxcSweQsN20KY/c4zN0h9fLjqAbwbPfahM3t+NL+M9HC8xeXG2I8pX5NoamTGNuomEUFI7fcUjA==",
+ "dev": true,
+ "optional": true,
+ "requires": {
+ "@types/color-name": "^1.1.1",
+ "color-convert": "^2.0.1"
+ }
+ },
+ "chalk": {
+ "version": "3.0.0",
+ "resolved": "https://registry.npmjs.org/chalk/-/chalk-3.0.0.tgz",
+ "integrity": "sha512-4D3B6Wf41KOYRFdszmDqMCGq5VV/uMAB273JILmO+3jAlh8X4qDtdtgCR3fxtbLEMzSx22QdhnDcJvu2u1fVwg==",
+ "dev": true,
+ "optional": true,
+ "requires": {
+ "ansi-styles": "^4.1.0",
+ "supports-color": "^7.1.0"
+ }
+ },
+ "color-convert": {
+ "version": "2.0.1",
+ "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz",
+ "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==",
+ "dev": true,
+ "optional": true,
+ "requires": {
+ "color-name": "~1.1.4"
+ }
+ },
+ "color-name": {
+ "version": "1.1.4",
+ "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz",
+ "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==",
+ "dev": true,
+ "optional": true
+ },
+ "has-flag": {
+ "version": "4.0.0",
+ "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz",
+ "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==",
+ "dev": true,
+ "optional": true
+ },
+ "supports-color": {
+ "version": "7.2.0",
+ "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz",
+ "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==",
+ "dev": true,
+ "optional": true,
+ "requires": {
+ "has-flag": "^4.0.0"
+ }
+ },
+ "vue-loader-v16": {
+ "version": "npm:vue-loader@16.0.0-beta.7",
+ "resolved": "https://registry.npmjs.org/vue-loader/-/vue-loader-16.0.0-beta.7.tgz",
+ "integrity": "sha512-xQ8/GZmRPdQ3EinnE0IXwdVoDzh7Dowo0MowoyBuScEBXrRabw6At5/IdtD3waKklKW5PGokPsm8KRN6rvQ1cw==",
+ "dev": true,
+ "optional": true,
+ "requires": {
+ "@types/mini-css-extract-plugin": "^0.9.1",
+ "chalk": "^3.0.0",
+ "hash-sum": "^2.0.0",
+ "loader-utils": "^1.2.3",
+ "merge-source-map": "^1.1.0",
+ "source-map": "^0.6.1"
+ }
+ }
}
},
"@vue/cli-shared-utils": {
@@ -10862,11 +10936,6 @@
"resolved": "https://registry.npmjs.org/markdown-it-mark/-/markdown-it-mark-3.0.0.tgz",
"integrity": "sha512-HqMWeKfMMOu4zBO0emmxsoMWmbf2cPKZY1wP6FsTbKmicFfp5y4L3KXAsNeO1rM6NTJVOrNlLKMPjWzriBGspw=="
},
- "markdown-it-strikethrough-alt": {
- "version": "1.0.0",
- "resolved": "https://registry.npmjs.org/markdown-it-strikethrough-alt/-/markdown-it-strikethrough-alt-1.0.0.tgz",
- "integrity": "sha1-uKMGeEsNyVSuQaGzViEbx0YxVrE="
- },
"markdown-it-sub": {
"version": "1.0.0",
"resolved": "https://registry.npmjs.org/markdown-it-sub/-/markdown-it-sub-1.0.0.tgz",
@@ -15202,72 +15271,6 @@
}
}
},
- "vue-loader-v16": {
- "version": "npm:vue-loader@16.0.0-beta.7",
- "resolved": "https://registry.npmjs.org/vue-loader/-/vue-loader-16.0.0-beta.7.tgz",
- "integrity": "sha512-xQ8/GZmRPdQ3EinnE0IXwdVoDzh7Dowo0MowoyBuScEBXrRabw6At5/IdtD3waKklKW5PGokPsm8KRN6rvQ1cw==",
- "dev": true,
- "requires": {
- "@types/mini-css-extract-plugin": "^0.9.1",
- "chalk": "^3.0.0",
- "hash-sum": "^2.0.0",
- "loader-utils": "^1.2.3",
- "merge-source-map": "^1.1.0",
- "source-map": "^0.6.1"
- },
- "dependencies": {
- "ansi-styles": {
- "version": "4.2.1",
- "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.2.1.tgz",
- "integrity": "sha512-9VGjrMsG1vePxcSweQsN20KY/c4zN0h9fLjqAbwbPfahM3t+NL+M9HC8xeXG2I8pX5NoamTGNuomEUFI7fcUjA==",
- "dev": true,
- "requires": {
- "@types/color-name": "^1.1.1",
- "color-convert": "^2.0.1"
- }
- },
- "chalk": {
- "version": "3.0.0",
- "resolved": "https://registry.npmjs.org/chalk/-/chalk-3.0.0.tgz",
- "integrity": "sha512-4D3B6Wf41KOYRFdszmDqMCGq5VV/uMAB273JILmO+3jAlh8X4qDtdtgCR3fxtbLEMzSx22QdhnDcJvu2u1fVwg==",
- "dev": true,
- "requires": {
- "ansi-styles": "^4.1.0",
- "supports-color": "^7.1.0"
- }
- },
- "color-convert": {
- "version": "2.0.1",
- "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz",
- "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==",
- "dev": true,
- "requires": {
- "color-name": "~1.1.4"
- }
- },
- "color-name": {
- "version": "1.1.4",
- "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz",
- "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==",
- "dev": true
- },
- "has-flag": {
- "version": "4.0.0",
- "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz",
- "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==",
- "dev": true
- },
- "supports-color": {
- "version": "7.2.0",
- "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz",
- "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==",
- "dev": true,
- "requires": {
- "has-flag": "^4.0.0"
- }
- }
- }
- },
"vue-style-loader": {
"version": "4.1.2",
"resolved": "https://registry.npmjs.org/vue-style-loader/-/vue-style-loader-4.1.2.tgz",
diff --git a/package.json b/package.json
index 9d84f2d..75a80f7 100644
--- a/package.json
+++ b/package.json
@@ -30,7 +30,6 @@
"markdown-it-ins": "^3.0.0",
"markdown-it-latex": "^0.2.0",
"markdown-it-mark": "^3.0.0",
- "markdown-it-strikethrough-alt": "^1.0.0",
"markdown-it-sub": "^1.0.0",
"markdown-it-sup": "^1.0.0",
"markdown-it-task-lists": "^2.1.1",
diff --git a/src/vue-markdown-it.js b/src/vue-markdown-it.js
index 57fe27c..6c63089 100644
--- a/src/vue-markdown-it.js
+++ b/src/vue-markdown-it.js
@@ -10,7 +10,6 @@ import MarkdownItHighlightjs from 'markdown-it-highlightjs';
import MarkdownItIns from 'markdown-it-ins';
import MarkdownItLatex from 'markdown-it-latex';
import MarkdownItMark from 'markdown-it-mark';
-import MarkdownItStrikethroughAlt from 'markdown-it-strikethrough-alt';
import MarkdownItSub from 'markdown-it-sub';
import MarkdownItSup from 'markdown-it-sup';
import MarkdownItTasklists from 'markdown-it-task-lists';
@@ -83,7 +82,6 @@ export default {
.use(MarkdownItIns)
.use(MarkdownItLatex)
.use(MarkdownItMark)
- .use(MarkdownItStrikethroughAlt)
.use(MarkdownItSub)
.use(MarkdownItSup)
.use(MarkdownItTasklists, props.tasklists)
From bb93d3ababf356a8866744a6f4b0d31c751d3c45 Mon Sep 17 00:00:00 2001
From: JanGuillermo
Date: Wed, 16 Sep 2020 18:14:32 -0700
Subject: [PATCH 3/7] :package: Add homepage
---
package.json | 1 +
1 file changed, 1 insertion(+)
diff --git a/package.json b/package.json
index 75a80f7..85abb1a 100644
--- a/package.json
+++ b/package.json
@@ -53,6 +53,7 @@
"vue": "^3.0.0-rc.11",
"vue-jest": "^5.0.0-0"
},
+ "homepage": "https://janguillermo.github.io/vue3-markdown-it/",
"repository": {
"type": "git",
"url": "https://github.com/JanGuillermo/vue3-markdown-it.git"
From d3e78f7f8f49900397142db5002b60a3a2c58db8 Mon Sep 17 00:00:00 2001
From: JanGuillermo
Date: Wed, 16 Sep 2020 18:49:10 -0700
Subject: [PATCH 4/7] :sparkles: Add linkify property
---
CHANGELOG.md | 3 +++
README.md | 5 +++++
src/vue-markdown-it.js | 5 +++++
3 files changed, 13 insertions(+)
diff --git a/CHANGELOG.md b/CHANGELOG.md
index a7274da..00ca2af 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -5,6 +5,9 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
## [1.0.3] - 2020-09-XX
+### Added
+- Added `linkify` property
+
### Removed
- `markdown-it-strikethrough-alt` dependency
diff --git a/README.md b/README.md
index 5676a0f..c2769cc 100644
--- a/README.md
+++ b/README.md
@@ -108,6 +108,11 @@ Type: `Boolean` | Default value: `false`
Type: `String` | Default value: `language-`
+### `linkify`
+> Autoconvert URL-like text to links
+
+Type: `Boolean` | Default value: `false`
+
### `quotes`
> Double + single quotes replacement pairs, when typographer enabled and smartquotes on. Could be either a String or an Array. *For example*, you can use `«»„“` for Russian, `„“‚‘` for German, and `['«\xA0', '\xA0»', '‹\xA0', '\xA0›']` for French (including nbsp).
diff --git a/src/vue-markdown-it.js b/src/vue-markdown-it.js
index 6c63089..167d9dc 100644
--- a/src/vue-markdown-it.js
+++ b/src/vue-markdown-it.js
@@ -40,6 +40,10 @@ const props = {
type: String,
default: 'language-'
},
+ linkify: {
+ type: Boolean,
+ default: false
+ },
quotes: {
type: String,
default: '“”‘’'
@@ -90,6 +94,7 @@ export default {
breaks: props.breaks,
html: props.html,
langPrefix: props.langPrefix,
+ linkify: props.linkify,
quotes: props.quotes,
typographer: props.typographer,
xhtmlOut: props.xhtmlOut
From 0aa454cc8ef059b5c35cc7031cdc3605538f699c Mon Sep 17 00:00:00 2001
From: Jan <6843446+JanGuillermo@users.noreply.github.com>
Date: Wed, 16 Sep 2020 19:36:31 -0700
Subject: [PATCH 5/7] =?UTF-8?q?=E2=9A=A1=20Reduce=20production=20library?=
=?UTF-8?q?=20size?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
package.json | 5 ++---
1 file changed, 2 insertions(+), 3 deletions(-)
diff --git a/package.json b/package.json
index 85abb1a..23c0907 100644
--- a/package.json
+++ b/package.json
@@ -11,10 +11,9 @@
"markdown",
"markdown-it"
],
- "main": "dist/vue3-markdown-it.common.js",
- "module": "dist/vue3-markdown-it.umd.js",
+ "main": "dist/vue3-markdown-it.umd.min.js",
"scripts": {
- "build": "vue-cli-service build --target lib ./src/index.js",
+ "build": "vue-cli-service build --formats umd-min --target lib ./src/index.js",
"lint": "vue-cli-service lint",
"test": "vue-cli-service test:unit",
"prepare": "npm run test && npm run build"
From f5d51c1f3da8527413401b3465b4daf275c2b6cd Mon Sep 17 00:00:00 2001
From: JanGuillermo
Date: Wed, 16 Sep 2020 19:40:23 -0700
Subject: [PATCH 6/7] :pencil: Add live demo link
---
README.md | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/README.md b/README.md
index c2769cc..ce598ea 100644
--- a/README.md
+++ b/README.md
@@ -2,12 +2,16 @@
-# vue3-markdown-it
+# ✨ vue3-markdown-it ✨
[](https://www.npmjs.com/package/vue3-markdown-it) [](https://travis-ci.com/JanGuillermo/vue3-markdown-it) [](https://codecov.io/gh/JanGuillermo/vue3-markdown-it) [](https://david-dm.org/JanGuillermo/vue3-markdown-it) [](https://snyk.io/test/github/JanGuillermo/vue3-markdown-it?targetFile=package.json) [](https://www.npmjs.com/package/vue3-markdown-it)
> A Vue 3 [markdown-it](https://github.com/markdown-it/markdown-it) wrapper plugin.
+🔎 [Live Demo](https://janguillermo.github.io/vue3-markdown-it/)
+
+---
+
## Installation
```
npm install vue3-markdown-it
From 8915cc413e3151a6d0d50f0fa1e585d9dab5c547 Mon Sep 17 00:00:00 2001
From: JanGuillermo
Date: Wed, 16 Sep 2020 19:41:45 -0700
Subject: [PATCH 7/7] :pencil: Update change log
---
CHANGELOG.md | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 00ca2af..38265a4 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -4,10 +4,13 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
-## [1.0.3] - 2020-09-XX
+## [1.0.3] - 2020-09-16
### Added
- Added `linkify` property
+### Changed
+- Reduced production library size
+
### Removed
- `markdown-it-strikethrough-alt` dependency