Skip to content

Commit

Permalink
Fix wrong image path in zh-CN/README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
laobubu committed Jun 25, 2018
1 parent debd8cc commit 39094e8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
5 changes: 3 additions & 2 deletions demo/index2.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
/* global editor, is_running_demo, HyperMD */

/// <reference path="./index.js" />

// the following code is just for test.
// useless for you.

Expand Down Expand Up @@ -115,8 +117,7 @@ function load_and_update_editor(url) {

history_op = "pushState"

/** global allowDirectOpen */
if (!allowDirectOpen && /\/docs\//.test(url)) allowDirectOpen = true
if (!allowDirectOpen && url.indexOf('/docs/') >= 0 && url.indexOf('README') === -1) allowDirectOpen = true

editor.setOption('hmdReadLink', { baseURI: current_baseuri }) // for images and links in Markdown
editor.setValue(text)
Expand Down
2 changes: 1 addition & 1 deletion docs/zh-CN/README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# HyperMD

![HyperMD Markdown Editor](../demo/logo.png)
![HyperMD Markdown Editor](../../demo/logo.png)

**打破** Markdown *写作**预览***次元壁**

Expand Down

0 comments on commit 39094e8

Please sign in to comment.