refactor(editor): 优化富文本编辑器内容格式转换逻辑
- 改进 HTML 到 Markdown 的转换规则,处理块级元素和行内元素的嵌套关系 - 优化图片和视频标签的解析逻辑,确保附件正确提取 - 修复换行符处理问题,避免产生多余空行 - 增强居中文本和标题的格式转换准确性 - 清理调试日志和冗余代码
This commit is contained in:
@@ -160,14 +160,21 @@
|
||||
line-height: 26px;
|
||||
margin-bottom: 66px;
|
||||
}
|
||||
#details .matter .matter-left .html * {
|
||||
background: transparent !important;
|
||||
color: #555555 !important;
|
||||
}
|
||||
#details .matter .matter-left .html a {
|
||||
text-decoration: underline;
|
||||
color: #04b0d5;
|
||||
color: #04b0d5 !important;
|
||||
}
|
||||
#details .matter .matter-left .html a * {
|
||||
color: #04b0d5 !important;
|
||||
}
|
||||
#details .matter .matter-left .html .blue {
|
||||
font-size: 15px;
|
||||
line-height: 26px;
|
||||
color: #026277;
|
||||
color: #026277 !important;
|
||||
margin: 0 4px;
|
||||
text-decoration: none;
|
||||
}
|
||||
@@ -176,19 +183,17 @@
|
||||
display: inline-block;
|
||||
}
|
||||
#details .matter .matter-left .html video {
|
||||
margin: 0 auto;
|
||||
margin: 0 auto 5px;
|
||||
height: 300px;
|
||||
display: block;
|
||||
}
|
||||
#details .matter .matter-left .html h1 {
|
||||
font-family: "PingFangSC-Semibold", "PingFang SC Semibold", "PingFang SC", sans-serif;
|
||||
font-weight: 650;
|
||||
color: #000000;
|
||||
color: #000000 !important;
|
||||
font-size: 18px;
|
||||
line-height: 30px;
|
||||
}
|
||||
#details .matter .matter-left .html tr,
|
||||
#details .matter .matter-left .html td {
|
||||
background: transparent;
|
||||
}
|
||||
#details .matter .matter-left .last-time {
|
||||
color: #aaaaaa;
|
||||
font-size: 13px;
|
||||
|
||||
Reference in New Issue
Block a user