Skip to content

Commit 33f6678

Browse files
committed
fix font awsome
1 parent e770d93 commit 33f6678

File tree

4 files changed

+17
-13
lines changed

4 files changed

+17
-13
lines changed

example/components/example.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ You can also use inline math: \`$29^{th}$\`
102102
103103
[Emoji Cheat Sheet](http://www.emoji-cheat-sheet.com/)
104104
105-
## Fontawesome: :fa-cab: :fa-flag: :fa-bicycle: :fa-leaf: :fa-heart:
105+
## Fontawesome: :fa-car: :fa-flag: :fa-bicycle: :fa-leaf: :fa-heart:
106106
107107
[All the Font Awesome icons](http://fontawesome.io/icons/)
108108

package.json

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "markdown-it-vue",
3-
"version": "1.1.0",
3+
"version": "1.1.1",
44
"private": false,
55
"description": "The vue lib for markdown-it",
66
"author": {
@@ -34,7 +34,7 @@
3434
"font-awesome-icon-chars": "^2.5.0",
3535
"github-markdown-css": "^4.0.0",
3636
"highlight.js": "^10.0.3",
37-
"markdown-it": "^10.0.0",
37+
"markdown-it": "^11.0.0",
3838
"markdown-it-abbr": "^1.0.4",
3939
"markdown-it-container": "^2.0.0",
4040
"markdown-it-deflist": "^2.0.3",
@@ -97,5 +97,8 @@
9797
"repository": {
9898
"type": "git",
9999
"url": "git+https://github.com/ravenq/markdown-it-vue.git"
100+
},
101+
"publishConfig": {
102+
"registry": "https://npm.pkg.github.com/"
100103
}
101104
}

src/markdown-it-font-awsome/index.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,9 @@ const iconsPlugin = (md) => {
88
let options = null
99
let faIcons = []
1010
faIconChars.forEach(char => {
11-
faIcons = faIcons.concat(char.id).concat(char.aliases || [])
11+
faIcons = faIcons.concat(char.name)
1212
})
13+
console.log(faIconChars)
1314
const faRegex = new RegExp(`(:fa-(?:${faIcons.join('|')}):)`)
1415
options = {
1516
name: 'font-awesome',

yarn.lock

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -5451,10 +5451,10 @@ lines-and-columns@^1.1.6:
54515451
resolved "https://registry.npm.taobao.org/lines-and-columns/download/lines-and-columns-1.1.6.tgz#1c00c743b433cd0a4e80758f7b64a57440d9ff00"
54525452
integrity sha1-HADHQ7QzzQpOgHWPe2SldEDZ/wA=
54535453

5454-
linkify-it@^2.0.0:
5455-
version "2.2.0"
5456-
resolved "https://registry.npm.taobao.org/linkify-it/download/linkify-it-2.2.0.tgz#e3b54697e78bf915c70a38acd78fd09e0058b1cf"
5457-
integrity sha1-47VGl+eL+RXHCjis14/QngBYsc8=
5454+
linkify-it@^3.0.1:
5455+
version "3.0.2"
5456+
resolved "https://registry.yarnpkg.com/linkify-it/-/linkify-it-3.0.2.tgz#f55eeb8bc1d3ae754049e124ab3bb56d97797fb8"
5457+
integrity sha512-gDBO4aHNZS6coiZCKVhSNh43F9ioIL4JwRjLZPkoLIY4yZFwg264Y5lu2x6rb1Js42Gh6Yqm2f6L2AJcnkzinQ==
54585458
dependencies:
54595459
uc.micro "^1.0.1"
54605460

@@ -5740,14 +5740,14 @@ markdown-it-toc-and-anchor@^4.1.2:
57405740
clone "^2.1.0"
57415741
uslug "^1.0.4"
57425742

5743-
markdown-it@^10.0.0:
5744-
version "10.0.0"
5745-
resolved "https://registry.npm.taobao.org/markdown-it/download/markdown-it-10.0.0.tgz#abfc64f141b1722d663402044e43927f1f50a8dc"
5746-
integrity sha1-q/xk8UGxci1mNAIETkOSfx9QqNw=
5743+
markdown-it@^11.0.0:
5744+
version "11.0.0"
5745+
resolved "https://registry.yarnpkg.com/markdown-it/-/markdown-it-11.0.0.tgz#dbfc30363e43d756ebc52c38586b91b90046b876"
5746+
integrity sha512-+CvOnmbSubmQFSA9dKz1BRiaSMV7rhexl3sngKqFyXSagoA3fBdJQ8oZWtRy2knXdpDXaBw44euz37DeJQ9asg==
57475747
dependencies:
57485748
argparse "^1.0.7"
57495749
entities "~2.0.0"
5750-
linkify-it "^2.0.0"
5750+
linkify-it "^3.0.1"
57515751
mdurl "^1.0.1"
57525752
uc.micro "^1.0.5"
57535753

0 commit comments

Comments
 (0)