Skip to content

Commit

Permalink
Merge pull request #1739 from V1ncNet/hotfix/fence-class
Browse files Browse the repository at this point in the history
closes #1738
  • Loading branch information
jackycute committed Jan 13, 2023
2 parents 21345ed + adb0dd5 commit a2565bd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion public/js/lib/markdown/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ export function parseFenceCodeParams (lang) {
if (param[0] === '#') {
params.id = param.slice(1)
} else if (param[0] === '.') {
if (params.class) params.class = []
if (!params.class) params.class = []
params.class = params.class.concat(param.slice(1))
} else {
const offset = param.indexOf('=')
Expand Down

0 comments on commit a2565bd

Please sign in to comment.