Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

运行无报错输出,但是打开html空白 #8

Open
peace-dove opened this issue May 26, 2022 · 1 comment
Open

运行无报错输出,但是打开html空白 #8

peace-dove opened this issue May 26, 2022 · 1 comment
Assignees

Comments

@peace-dove
Copy link

执行指令没问题,但是打开对应html是空白。

@fritx fritx self-assigned this Aug 17, 2022
@fritx
Copy link
Owner

fritx commented Aug 18, 2022

image

@peace-dove 你应该是直接打开了html,file://协议打开会有跨域问题

抱歉文档里可能没有说清楚,我们一般都是约定用正常的http://协议打开

你需要启动一个静态服务器,比如可以这样做:

npm install -g markppt

cd ./examples/talk
markppt ./talk.md

# 方式1 python 2
python -m SimpleHTTPServer 8080
# 方式2 python 3
python -m http.server 8080
# 方式3 nodejs
npm i -g serve
serve -p 8080

# 然后访问 http://localhost:8080/talk.html

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants