admin管理员组

文章数量:1313771

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?

本文标签: How to convert ltpregt block to a list block in WordPress gutenberg editor