Skip to content

Commit

Permalink
Merge pull request #1194 from terwer/feature/hotfix
Browse files Browse the repository at this point in the history
fix: #1191 markdown render error with multi list
  • Loading branch information
terwer committed Apr 24, 2024
2 parents f74b264 + bde0e15 commit f9b75df
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/adaptors/base/baseExtendApi.ts
Expand Up @@ -299,14 +299,14 @@ class BaseExtendApi extends WebApi implements IBlogApi, IWebApi {
// md = md.replace(/==([^=]+)==/g, '<span style="font-weight: bold;" class="mark">$1</span>')
// md = MdUtils.replaceSign(md, "=", "mark", "color: red;")
// md = MdUtils.replaceSignToAnother(md, "=", "*", "*")
md = MdUtils.replaceSignToAnother(md, "==", "**", "**")
md = MdUtils.replaceSignToAnother(md, "==", " **", "** ")

// 处理加粗
// #821 html发布的时候会出现有些格式没有转化
// **这里是加粗**
// <span data-type="strong">这里是加粗</span>
// md = md.replace(/\*\*(.*?)\*\*/g, '<span style="font-weight: bold;" data-type="strong">$1</span>')
md = MdUtils.replaceSignToAnother(md, "**", " **", "** ")
// md = MdUtils.replaceSignToAnother(md, "**", " **", "** ")

// 处理外链
const { getReadOnlyPublishPreferenceSetting } = usePreferenceSettingStore()
Expand Down

0 comments on commit f9b75df

Please sign in to comment.