Code Monkey home page Code Monkey logo

plugin-hybrid-edit-block's People

Contributors

lilgg avatar ruibaby avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

lilgg ruibaby

plugin-hybrid-edit-block's Issues

Markdown的目录无法正确跳转

大佬您好,以下是问题描述

在文章的Markdown编辑框内完成编辑后,右侧的目录无法正确显示子目录和跳转

  • 右侧目录只能高亮第一标题,往下拉其他标题不会高亮和展开

  • 下拉后,点击右侧目录会返回最上面

感谢您的工作

markdown内容块Task list保存后方括号被清除

环境

Halo 2.11.0;Markdown / HTML 内容块插件 1.0.1

问题描述

使用默认编辑器插入markdown代码块后,书写Task list,如图所示
piXRNAf.md.png
保存并发布文档后,再次打开编辑文档,方括号会被清除掉,Task list就会变为无序列表了,如图所示
piXRUN8.md.png

Markdown 编辑块仅使用 br 时会报错

问题描述

在 Markdown 编辑块中仅使用 <br> 时,会导致编辑器报错。

halo-rich-text-editor.iife.ccf0d420.js:21 Uncaught (in promise) RangeError: Empty text nodes are not allowed
    at new Ca (halo-rich-text-editor.iife.ccf0d420.js:21:48432)
    at Aa.text (halo-rich-text-editor.iife.ccf0d420.js:22:8357)
    at Object.getContent (bundle.js?t=1702885450664:574:2061)
    at mg.addElementByRule (halo-rich-text-editor.iife.ccf0d420.js:24:919)
    at halo-rich-text-editor.iife.ccf0d420.js:23:1125
    at mg.withStyleRules (halo-rich-text-editor.iife.ccf0d420.js:22:13120)
    at mg.addElement (halo-rich-text-editor.iife.ccf0d420.js:23:1098)
    at mg.addDOM (halo-rich-text-editor.iife.ccf0d420.js:22:13043)
    at mg.addAll (halo-rich-text-editor.iife.ccf0d420.js:24:1411)
    at fr.parse (halo-rich-text-editor.iife.ccf0d420.js:22:9274)

/kind bug

Markdown 编辑器无法重新渲染 HTML 内容

问题描述

使用 Markdown 编辑器自定义 HTML ,保存后刷新再次编辑 Markdown 块,原内容会无法渲染出现丢失。

如下 Markdown

<figure style="display: flex; justify-content: space-around">

![Static Badge](https://img.shields.io/badge/1Panel-v1.8.3-green?style=flat&logoColor=yellow&label=1Panel&labelColor=blue&color=green&cacheSeconds=3600&link=https%3A%2F%2F1panel.cn%2F)

![Static Badge](https://img.shields.io/badge/OpenResty-1.21.4.3-blue?style=flat&logoColor=yellow&label=OpenResty&labelColor=blue&color=green&cacheSeconds=3600&link=https%3A%2F%2F1panel.cn%2F)

</figure>

在刷新前如下所示:

image

刷新后变为下述形式:

image

刷新后再次编辑,内容变为

![Static Badge](https://img.shields.io/badge/1Panel-v1.8.3-green?style=flat&logoColor=yellow&label=1Panel&labelColor=blue&color=green&cacheSeconds=3600&link=https%3A%2F%2F1panel.cn%2F)

![Static Badge](https://img.shields.io/badge/OpenResty-1.21.4.3-blue?style=flat&logoColor=yellow&label=OpenResty&labelColor=blue&color=green&cacheSeconds=3600&link=https%3A%2F%2F1panel.cn%2F)

/kind bug

插件使用图片时排版和显示不正确

Version

  • halo: 2.10.2
  • plugin: 1.0.1

Description

  1. 新建文章
  2. 选择默认编辑器
  3. 选择MMarkdown编辑块
  4. 在块中新增一下两个图片内容,期望是并排显示,但是实际上换行显示,其次显示的样式和实际样式也存在差异
# 检测网站并自动重启OpenResty服务

![Static Badge](https://img.shields.io/badge/1Panel-v1.8.3-green?style=flat&logoColor=yellow&label=1Panel&labelColor=blue&color=green&cacheSeconds=3600&link=https%3A%2F%2F1panel.cn%2F)

![Static Badge](https://img.shields.io/badge/OpenResty-1.21.4.3-blue?style=flat&logoColor=yellow&label=OpenResty&labelColor=blue&color=green&cacheSeconds=3600&link=https%3A%2F%2F1panel.cn%2F)
  • 图示1
image
  • 图示2
image
  • 图示3
image

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.