Zuoqiu-Yingyi / siyuan-theme-dark-plus

思源笔记的一款多功能双模式主题 | A multifunctional dual-mode theme of SiYuan Note.
GNU Affero General Public License v3.0
139 stars 14 forks source link

:bug: 一个小问题:带有 NodeHeadingC8hMarker 类型的块,编辑后,经常会被重置 #220

Open zhoutaosheng opened 5 months ago

zhoutaosheng commented 5 months ago

该问题是否已经被报告过了? Is there an existing issue for this?

描述问题 Describe the problem

可能是以前从markdown导入的块,在编辑后,总是被重置。 比如下面这样的块,将标题 Sphere 修改为 Sphere1 后,刷新后,就被重置成 Sphere

{
    "ID": "20230425200694-9j3zox2",
    "Type": "NodeHeading",
    "HeadingLevel": 3,
    "Properties": {
        "id": "20230425200694-9j3zox2",
        "updated": "20240430103841"
    },
    "Children": [
        {
            "Type": "NodeHeadingC8hMarker",
            "Data": "### ",
            "Properties": {
                "id": ""
            }
        },
        {
            "Type": "NodeText",
            "Data": "Sphere",
            "Properties": {
                "id": ""
            }
        }
    ]
},

而现在的标题块,没有 NodeHeadingC8hMarker 这个部分,没有这个问题

{
    "ID": "20240430111210-zy3v0wi",
    "Type": "NodeHeading",
    "HeadingLevel": 3,
    "Properties": {
        "id": "20240430111210-zy3v0wi",
        "updated": "20240430111215"
    },
    "Children": [
        {
            "Type": "NodeText",
            "Data": "Spehre"
        }
    ]
},

另外的线索是:

期待的结果 Expected result

希望编辑后,不被重置。 或者提供能将全部笔记,重置为新的不带 NodeHeadingC8hMarker 的方法

截屏或者录屏演示 Screenshot or screen recording presentation

No response

版本环境 Version environment

- SiYuan Version: 3.0.15
- Dark+ Version: 2.0.1
- Operating System: Windows 11
- Browser (if used):

更多信息 More information

No response

Zuoqiu-Yingyi commented 4 months ago

这是思源的问题还是主题的问题啊👀

zhoutaosheng commented 4 months ago

这是思源的问题还是主题的问题啊👀

确定是主题的问题,切换到思源官方的主题没有问题 所以现在,每次遇到的时候,我都切换到官方主题,修改好了再切换回 Dark+

zhoutaosheng commented 4 months ago

@Zuoqiu-Yingyi 或者,你能猜测大概跟哪个模块有关系吗?我可以先关掉这部分特性

注:我已经尝试关掉 style/module/block-heading.css,仍然会有问题

Zuoqiu-Yingyi commented 2 months ago

@Zuoqiu-Yingyi 或者,你能猜测大概跟哪个模块有关系吗?我可以先关掉这部分特性

注:我已经尝试关掉 style/module/block-heading.css,仍然会有问题

重建索引一次试试, 好像重建索引后会自动转换 NodeHeading 节点的格式