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

关于yilia主题支持Markdown渲染的问题 #519

Open
2 tasks
CharlesLiuyx opened this issue May 24, 2017 · 14 comments
Open
2 tasks

关于yilia主题支持Markdown渲染的问题 #519

CharlesLiuyx opened this issue May 24, 2017 · 14 comments

Comments

@CharlesLiuyx
Copy link

CharlesLiuyx commented May 24, 2017

在yilia主题下不支持 or hexo不支持?但是看到hexo的说明里能支持github flavored markdown语法啊

  • 前面是标志完成或者未完成的语法
  • 测试一下

在主题内显示出来的情况

@NoahDragon
Copy link

是否是用的hexo-renderer-marked?0.3.0版本应该已经支持了hexojs/hexo-renderer-marked#32

@CharlesLiuyx
Copy link
Author

应该是的

~/Github/lyxblog  npm ls --depth 0
[email protected] /Users/charlesliuyx/Github/lyxblog
├── [email protected] extraneous
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── UNMET DEPENDENCY hexo-math@^3.0.2
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected] extraneous
└── [email protected] extraneous

npm ERR! missing: hexo-math@^3.0.2, required by [email protected]
npm ERR! extraneous: [email protected] /Users/charlesliuyx/Github/lyxblog/node_modules/ejs
npm ERR! extraneous: [email protected] /Users/charlesliuyx/Github/lyxblog/node_modules/sass
npm ERR! extraneous: [email protected] /Users/charlesliuyx/Github/lyxblog/node_modules/webpack

@NoahDragon
Copy link

在hexo目录下的_config.yml文件中,是否有marked设置?

@CharlesLiuyx
Copy link
Author

没有怎么改过Hexo目录下的_config.yml

# Writing
new_post_name: :title.md # File name of new posts
default_layout: post
titlecase: false # Transform title into titlecase
external_link: true # Open external links in new tab
filename_case: 0
render_drafts: false
post_asset_folder: false
relative_link: false
highlight:                                                                                                                                                                                                   
  enable: true                                                                                                                                                                                               
  auto_detect: true                                                                                                                                                                                          
  line_number: true                                                                                                                                                                                          
  tab_replace: ''

# Category & Tag
default_category: uncategorized
category_map:
tag_map:

# Archives
## 2: Enable pagination
## 1: Disable pagination
## 0: Fully Disable
archive: 1
category: 1
tag: 1

@CharlesLiuyx
Copy link
Author

我的里面三个

是不是和这个renderer的顺序有关呢?如果需要设置,应该在哪里设置呢?

@NoahDragon
Copy link

@CharlesLiuyx 刚才在测试,这个版本的[email protected]确实不运行,似乎是哪里的更改造成了这个问题。
请将其package.json改为如下:

"hexo-renderer-marked": "hexojs/hexo-renderer-marked#Fix-checklist-issue"

可以暂时修复此问题。

@CharlesLiuyx
Copy link
Author

CharlesLiuyx commented May 24, 2017

您好,是将hexo根目录的package.json更改吗,我修改的根目录下面的还是没有效果

@NoahDragon
Copy link

@CharlesLiuyx 是的。有没有运行npm update

@CharlesLiuyx
Copy link
Author

谢谢已经Work了!但是在格式上前面会多出一个点
image

@NoahDragon
Copy link

能否贴下developer tools里这块是如何显示的?

@CharlesLiuyx
Copy link
Author

CharlesLiuyx commented May 25, 2017

  • Test

  • Test

Developer tools是说?Sorry,我比较新手,对Github和前端

@NoahDragon
Copy link

如果用Chrome的话,按F12会弹出那个窗口,可以用鼠标指向那几个checkbox,会跳转到对应的html处。可以贴下那里的代码么?

@CharlesLiuyx
Copy link
Author

<ul>
<li style="list-style: none"><input type="checkbox"> 测试</li>
<li style="list-style: none"><input type="checkbox" checked=""> 测试</li>
</ul>

image
截图是这样,有一个::before 定位到了前面的原点

@litten
Copy link
Owner

litten commented May 26, 2017

这个场景我没考虑到,找时间修复下
谢谢提供信息

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

No branches or pull requests

3 participants