Skip to content

Commit

Permalink
fix: #396
Browse files Browse the repository at this point in the history
  • Loading branch information
sunsonliu committed Feb 23, 2023
1 parent fc7bc1f commit 07ebfd5
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions src/Cherry.js
Original file line number Diff line number Diff line change
Expand Up @@ -481,9 +481,12 @@ export default class Cherry extends CherryStatic {
(this.options.engine.syntax.header && this.options.engine.syntax.header.anchorStyle) || 'default';
const autonumberClass = anchorStyle === 'autonumber' ? ' head-num' : '';
const { className, dom, enablePreviewerBubble } = this.options.previewer;
const previewerClassName = ['cherry-previewer', className || '', autonumberClass, getThemeFromLocal(true)].join(
' ',
);
const previewerClassName = [
'cherry-previewer cherry-markdown',
className || '',
autonumberClass,
getThemeFromLocal(true),
].join(' ');
if (dom) {
previewer = dom;
previewer.className += ` ${previewerClassName}`;
Expand Down

0 comments on commit 07ebfd5

Please sign in to comment.