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

コード実行機能が動かない(全ページ) #65

Closed
saki7 opened this issue Nov 27, 2017 · 3 comments
Closed

コード実行機能が動かない(全ページ) #65

saki7 opened this issue Nov 27, 2017 · 3 comments
Assignees
Labels

Comments

@saki7
Copy link
Contributor

saki7 commented Nov 27, 2017

regression from cpprefjp/site#480, cpprefjp/site@1b301da

@saki7 saki7 added the bug label Nov 27, 2017
@saki7 saki7 self-assigned this Nov 27, 2017
@saki7
Copy link
Contributor Author

saki7 commented Nov 27, 2017

原因分かった

## 
```cpp example              <----------------  (1)
#include <iostream>
...コードの中身...
```                                  <----------------  (2)
* emplace_back[color ff0000]
* v.push_back[link push_back.md]

### 出力
```                                  <----------------  (3)
3,hello

Markdownのパーサで上における(2)から(3)が単一の完全なコードブロックとしてパースされてる、(1)から(2)は無視されてる

そもそも(1)の前に改行が無いのが問題な気がするので改行を追加すれば直ると思うけど、これを全ページ直すのはだるいので他の方法がないか考えてる

@saki7
Copy link
Contributor Author

saki7 commented Nov 27, 2017

http://spec.commonmark.org/0.28/#fenced-code-blocks

A fenced code block may interrupt a paragraph, and does not require a blank line either before or after.

うちが使ってるMarkdownパーサーがうんこっぽい

@saki7
Copy link
Contributor Author

saki7 commented Nov 27, 2017

@saki7 saki7 closed this as completed in 6b54aa9 Nov 27, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant