Skip to content

Commit

Permalink
fix: fix README content of engine mode.
Browse files Browse the repository at this point in the history
  • Loading branch information
jrainliu authored and lyngai committed Feb 11, 2022
1 parent 331efdd commit 4388bfa
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
7 changes: 4 additions & 3 deletions README.CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -156,9 +156,10 @@ const cherryInstance = new Cherry({
// 引入Cherry引擎核心构建
// 引擎配置项与Cherry通用,以下文档内容仅介绍Cherry核心包
import CherryEngine from 'cherry-markdown/dist/cherry-markdown.engine.core';
const cherryEngineInstance = new CherryEngine({
value: '# welcome to cherry editor!',
});
const cherryEngineInstance = new CherryEngine();
const htmlContent = cherryEngineInstance.makeHtml('# welcome to cherry editor!')

// --> <h1>welcome to cherry editor!</h1>
```

### ⚠️ 关于 mermaid
Expand Down
7 changes: 4 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -156,9 +156,10 @@ const cherryInstance = new Cherry({
// Import Cherry engine core construction
// Engine configuration items are the same as Cherry configuration items, the following document content only introduces the Cherry core package
import CherryEngine from 'cherry-markdown/dist/cherry-markdown.engine.core';
const cherryEngineInstance = new CherryEngine({
value: '# welcome to cherry editor!',
});
const cherryEngineInstance = new CherryEngine();
const htmlContent = cherryEngineInstance.makeHtml('# welcome to cherry editor!')

// --> <h1>welcome to cherry editor!</h1>
```

### ⚠️ About mermaid
Expand Down

0 comments on commit 4388bfa

Please sign in to comment.