stargrey / obsidian-better-codeblock

Add title, line number to Obsidian code block
MIT License
109 stars 10 forks source link

Line number for last line in yaml frontmatter is missing #9

Closed stainge closed 2 years ago

stainge commented 2 years ago

image

stargrey commented 2 years ago

Does the problem still exist? I can't reproduce it

stainge commented 2 years ago

Does the problem still exist? I can't reproduce it

YES.Updated to 1.0.7,nothing changed.

stargrey commented 2 years ago

I can't reproduce it, it shows no problem to me. Only in Yaml? image

stainge commented 2 years ago

I can't reproduce it, it shows no problem to me. Only in Yaml? image

yaml包裹的代码块没有问题,我反馈的是以---开头的frontmatter的最后一行的行号缺失 image

stargrey commented 2 years ago

麻烦在编辑模式下截个图,我看看原文是怎么写的

stainge commented 2 years ago

麻烦在编辑模式下截个图,我看看原文是怎么写的

image 写法是

---
tags: 标签
category: 分类
---

另外这个不显示frontmatter最后一行行号的bug在obsidian-code-block-enhancer上也有

stargrey commented 2 years ago

修复了,一时半会我都想不到还有frontmatter这功能来着…… 在obsidian-code-block-enhancer上也有是因为我部分代码从那复制来的,继承bug了……

stainge commented 2 years ago

问题已解决,辛苦开发者了