Skip to content

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

Closed

Description

@saki7

Activity

  1. self-assigned this
    on Nov 27, 2017
  2. saki7 commented on Nov 27, 2017

    @saki7
    ContributorAuthor

    原因分かった

    ## 例
    ```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)の前に改行が無いのが問題な気がするので改行を追加すれば直ると思うけど、これを全ページ直すのはだるいので他の方法がないか考えてる

  3. saki7 commented on Nov 27, 2017

    @saki7
    ContributorAuthor

    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パーサーがうんこっぽい

  4. saki7 commented on Nov 27, 2017

    @saki7
    ContributorAuthor
  5. added a commit that references this issue on Nov 27, 2017
    6b54aa9
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions