Skip to content

Commit

Permalink
fix: use em tag for emphasis point
Browse files Browse the repository at this point in the history
  • Loading branch information
reuixiy committed Feb 24, 2020
1 parent 4a528d4 commit a599634
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion assets/scss/base/_emphasis-point.scss
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
.emphasis-point {
font-weight: normal;
font-style: normal;
text-emphasis: '';
-webkit-text-emphasis: '';
-moz-text-emphasis: '';
Expand Down
2 changes: 1 addition & 1 deletion layouts/partials/utils/markdownify.html
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
{{- $Content := $Deliver.Scratch.Get "Content" -}}
{{- if $Deliver.Site.Params.enableEmphasisPoint -}}
{{- $regexPatternEmphasisPoint := `([^\.\x60])\.\.([^\.\s\n\/\\]+)\.\.([^\.\x60])` -}}
{{- $regexReplacementEmphasisPoint := `$1<strong class="emphasis-point">$2</strong>$3` -}}
{{- $regexReplacementEmphasisPoint := `$1<em class="emphasis-point">$2</em>$3` -}}
{{- $Content := $Content | replaceRE $regexPatternEmphasisPoint $regexReplacementEmphasisPoint | safeHTML -}}
{{- $Deliver.Scratch.Set "Content" $Content -}}
{{- end -}}
Expand Down

0 comments on commit a599634

Please sign in to comment.