Skip to content

Commit

Permalink
Turned fancy links back on
Browse files Browse the repository at this point in the history
  • Loading branch information
wcarhart committed Aug 9, 2021
1 parent 96b9d49 commit b465264
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion css/markdown.css
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
font-weight: 700;
}

.link {
.fancy-link {
font-weight: 400;
}

Expand Down
4 changes: 2 additions & 2 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -310,9 +310,9 @@ class Marq {
let href = match.replace(/^.*\(/, '').replace(/\)$/, '')
let html = ''
if (/\{\{src:.*\}\}/.exec(match) || /\{\{sys:home\}\}/.exec(match)) {
html = `<a class="${this.cssPrefix}link${this.cssSuffix}" href="${href}">${anchor}</a>`
html = `<a class="${this.cssPrefix}fancy-link${this.cssSuffix}" href="${href}">${anchor}</a>`
} else {
html = `<a class="${this.cssPrefix}link${this.cssSuffix}" href="${href}" target="_blank">${anchor}</a>`
html = `<a class="${this.cssPrefix}fancy-link${this.cssSuffix}" href="${href}" target="_blank">${anchor}</a>`
}
subcomponent = subcomponent.replace(match, html)
}
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@wcarhart/marq",
"version": "0.0.0",
"version": "1.0.1",
"main": "index.js",
"repository": "https://github.com/wcarhart/marq",
"author": "Will Carhart <[email protected]>",
Expand Down

0 comments on commit b465264

Please sign in to comment.