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

support code blocks in lists #472

Open
za3k opened this issue Jul 12, 2024 · 1 comment
Open

support code blocks in lists #472

za3k opened this issue Jul 12, 2024 · 1 comment

Comments

@za3k
Copy link

za3k commented Jul 12, 2024

<ul>
  <li>strikethrough (~) <pre>hello</pre></li>
  <li>tables (|, |---|)</li>
  <li>task list (- [ ] or - [x])</li>
</ul>

Should convert to:

*   strikethrough (~)
    
    ```
    hello
    ```
    
*   tables (|, |---|)
*   task list (- \[ \] or - \[x\])
*   strikethrough (~)
    
    ```hello```
    
*   tables (|, |---|)
*   task list (- \[ \] or - \[x\])

or

*   strikethrough (~)
    
        hello
    
*   tables (|, |---|)
*   task list (- \[ \] or - \[x\])

Depending on codeBlockStyle.

Currently, it converts instead to:

*   strikethrough (~)
    
    hello
    
*   tables (|, |---|)
*   task list (- \[ \] or - \[x\])
@za3k
Copy link
Author

za3k commented Jul 17, 2024

OK, turns out the issue here is that it's a <pre></pre> block rather than a <pre><code></code></pre> block. I'd still like it to work but unsure if it should be moved into a plugin.

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

1 participant