简体   繁体   English

将 HTML 标记添加到 WYSIWYG 编辑器

[英]Adding HTML Markup to a WYSIWYG Editor

Many of my blog posts have been imported into the WordPress WYSIWYG editor with HTML Markup/Styles styles.我的许多博客文章都已使用 HTML 标记/样式样式导入到 WordPress 所见即所得编辑器中。 This has resulted in a conflict as the Markdown styles are not recognized, and everything is parsed within paragraph tags.这导致了冲突,因为 Markdown 样式无法识别,并且所有内容都在段落标签内解析。

Is there a way to update the WordPress WYSIWYG to recognize Markdown styles, in order to process the preferred styles - without needing to edit each blog post itself?有没有办法更新 WordPress WYSIWYG 以识别 Markdown 样式,以便处理首选样式 - 而无需编辑每个博客文章本身?

You could us a search/replace plugin to replace the markdown with html.您可以使用搜索/替换插件来用 html 替换降价。 That's what markdown produces, anyway.无论如何,这就是降价产生的结果。 For instance, ** could become .例如,** 可以变成 . However, the closing ** would be harder to pin down.然而,收盘**将更难确定。 Here's a link for some plugins that do it, too.这是一些插件的链接,也是这样做的。 https://www.sitepoint.com/the-best-markdown-plugins-for-wordpress/ https://www.sitepoint.com/the-best-markdown-plugins-for-wordpress/

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM