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

Convert to HTML fail when header is only CJK characters #16

Closed
milligramme opened this issue Oct 26, 2016 · 3 comments
Closed

Convert to HTML fail when header is only CJK characters #16

milligramme opened this issue Oct 26, 2016 · 3 comments

Comments

@milligramme
Copy link

runing 2.0-beta.12.26

Header item will convert to H1-6 with id.
If the contents is only CJK chars, last quotation mark for id is short.

here is a sample.

# 第一階層

top level

## 第二階層

second level

## 第三階層

third level

Show Preview shots

screen shot 2016-10-26 10 19 05

output from Convert Document to HTML

<h1 id=">第一階層</h1>

<p>top level</p>

<h2 id=">第二階層</h2>

<p>second level</p>

<h2 id=">第三階層</h2>

<p>third level</p>

I expect this output.

<h1 id="">第一階層</h1>

<p>top level</p>

<h2 id="">第二階層</h2>

<p>second level</p>

<h2 id="">第三階層</h2>

<p>third level</p>
@milligramme
Copy link
Author

milligramme commented Oct 27, 2016

this probrem seems to be caused by redcarpet.rb vmg/redcarpet#538

@MikeMcQuaid
Copy link
Contributor

Going to close this in favour of the upstream issue.

@milligramme
Copy link
Author

installing redcarpet v3.4.0 fixed this issue.

$ sudo /System/Library/Frameworks/Ruby.framework/Versions/Current/usr/bin/gem install redcarpet

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

2 participants