## How to convert block to a list block in WordPress gutenberg editor?

Question

When I copy a text block from another website to WordPress gutenberg editor, it forms a <pre><code>...</code></pre> block. This block consists of several lines. I want to convert this block to a list block, and every line is a <li> element. Currently, when I click the block option, there is only one option there that converts the block to a paragraph. However, when the <pre> block is converted to a paragraph, the line-breaks in the original block are missing. I have to add those line-breaks manually to form multiple paragraphs, then convert those paragraphs to a list block. Is there a convenient way to convert a <pre><code>...</code></pre> block to a list block directly?

0
8 months 2020-12-10T05:10:29-05:00 0 Answers 5 views 0