Skip to content

打开使用 Markdown 语法编辑和解析内容功能后,文章不解析html标签 #547

@iatman

Description

@iatman

php 7版本,typecho 最新开发版。


后台打开使用 Markdown 语法编辑和解析内容功能后,文章内无法解析html标签,如audiovideo
后台关闭使用 Markdown 语法编辑和解析内容功能后,文章内可正常解析html标签。

后台关闭使用 Markdown 语法编辑和解析内容功能后,文章内写入的markdown语法无法解析,保留内容,再次打开使用 Markdown 语法编辑和解析内容功能后,文章内markdown语法仍旧不解析。需要在打开功能的情况下,重新输入内容。

打开功能的情况下,在编辑器仅支持部分标签解析,如divullia等此类标签。

在markdown内写入<html></html>标签,标签内的内容不解析,标签本身也被识别为文本。

在标签前部加入转移符,如\<html\>\<\/html\>后,转移符被解析,标签依旧为文本类。


F12后,发现在打开使用 Markdown 语法编辑和解析内容功能期间,发布的html 标签,均被p标签包围,使其变成了文本内容。


请问这个如何做互相嵌套,如 在打开功能后,依旧可以解析<html></html>标签,或者在关闭功能后,可以解析markdown内容。

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions