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

Does not show correctly when code block in list. #2620

Closed
magic3584 opened this issue Jun 23, 2017 · 12 comments
Closed

Does not show correctly when code block in list. #2620

magic3584 opened this issue Jun 23, 2017 · 12 comments
Labels
question Needs help in usage

Comments

@magic3584
Copy link

Environment Info

Node version(node -v): v7.2.0
Theme: Next.Muse
Hexo and Plugin version(npm ls --depth 0):

hexo-site@0.0.0 /Users/wang/Documents/wang/blog
├── hexo@3.2.2
├── hexo-deployer-git@0.2.0
├── hexo-generator-archive@0.1.4
├── hexo-generator-category@0.1.3
├── hexo-generator-index@0.2.0
├── hexo-generator-tag@0.2.0
├── hexo-renderer-ejs@0.2.0
├── hexo-renderer-marked@0.2.11
├── hexo-renderer-stylus@0.3.1
└── hexo-server@0.2.0

For BUG

It should show as:

Title 1

some text here

  1. step 1

    sudo dpkg -i chrome.deb
    sudo apt-get install -f
  2. step 2

    sudo apt-get install gdebi

    Install with gdebi

Title 2

but it was
1

@tea3
Copy link
Member

tea3 commented Jun 23, 2017

@magic3584
When I tried, no particular problems occurred. Do your code same with the following code?

some text here

1. step 1

    ```
    sudo dpkg -i chrome.deb
    sudo apt-get install -f
    ```

2. step 2

    ```
    sudo apt-get install gdebi
    ```
    install with gdebi

test

@NoahDragon NoahDragon added the question Needs help in usage label Jun 23, 2017
@magic3584
Copy link
Author

magic3584 commented Jun 24, 2017

yeah, I did. Please see the source markdown source_md and the result page result_page.
It does not show correctly between Google Chrome and dropbox title.

@tea3
Copy link
Member

tea3 commented Jun 24, 2017

@magic3584
I am watching the code with iphone. Probably the cause of the problem is that there are 5 spaces in your source_md . Please check your markdown file.

img_8736

@magic3584
Copy link
Author

@tea3
Sorry to say, the same result.

@tea3
Copy link
Member

tea3 commented Jun 26, 2017

@magic3584
I checked it with my PC. Delete the space as shown in the image below.

as

@tea3
Copy link
Member

tea3 commented Jun 26, 2017

@NoahDragon
If you put a blank line break after the code block, it seems that it can not render well.
Perhaps it is a bug in hexo-renderer-marked.

block

Code that goes well

some text here

1. step 1

    ```
    sudo dpkg -i chrome.deb
    sudo apt-get install -f
    ```

2. step 2

    ```
    sudo apt-get install gdebi
    ```
    install with gdebi

Code that can not be displayed as expected

some text here

1. step 1

    ```
    sudo dpkg -i chrome.deb
    sudo apt-get install -f
    ```

2. step 2

    ```
    sudo apt-get install gdebi
    ```
    
    install with gdebi

@magic3584
Copy link
Author

@tea3
Code block shows well, but the list doesn't now.

@tea3
Copy link
Member

tea3 commented Jun 26, 2017

@magic3584
If possible, please display me the updated source_md and result_page .

@magic3584
Copy link
Author

@tea3
I updated the source_md and result_page.

@tea3
Copy link
Member

tea3 commented Jun 26, 2017

@magic3584
It seems that you can successfully display it by deleting all the space in the last line below.

1. 命令行

    ``` ruby
    sudo dpkg -i chrome.deb
    sudo apt-get install -f
    ```
        

This is a rare way of writing, so plug-ins may not be assuming it.

@magic3584
Copy link
Author

@tea3
Thanks for your patient and detailed help!

@NoahDragon
Copy link
Member

@tea3 Thanks for pointing it out, I will check.

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

No branches or pull requests

3 participants