Results 12 comments of hank

@adaboese Thanks the report, will solve it recently

@dddominikk I will try to solve it within the scope of project recently, thanks for the report and suggestion!

Should we have a check for `this.scrollableAncestor.scrollHeight===this.scrollableAncestor.clientHeight`, which means the `Ancestor` Elements totally can't scroll ?

`markdown`本身没有支持居中的语法啊,因此直接解析成 # 111 是正确的

@chenfan0 这个html转换成md,没有去考虑样式问题的,一般都是用于能相互转换的页面,例如 [力扣题目](https://leetcode.cn/problems/two-sum/),用于比较复杂的页面会显得很难看

> 111的效果 > > # 111 > # 111的效果 > > # 111 我懂你的意思,但是markdown本身是不支持样式的,不能说为了样式,而直接输出一个原始html标签

@Lrunlin 这个会造成什么问题吗,有出现报错之类的吗 有几个语言是会转为完整的格式 ```js const toStandard={ 'js':'javascript', 'py':'python', 'c++':'cpp', 'md':'markdown' } ```

@Lrunlin okok, 我没有写ts的匹配,找时间补上吧 还有就是这个demo里面的`markdown-it`插件版本太旧了,html里面没有`language-ts`这个class的,到时候一起更新下吧

@Lrunlin 确实可以考虑,但是如果人家html本身就有class,例如`class="language-small"`,那就检测到一个`small`

> > @Lrunlin 确实可以考虑,但是如果人家html本身就有class,例如`class="language-small"`,那就检测到一个`small` > > 一般来说用户对pre或者code设置了class="language-*"基本也可以确定是代码块了,语言的话很多高亮插件支持200多种语言,如果一个个支持的话很麻烦。如果用户对代码块有其他的配置可以考虑使用其他字符串作为前缀,language值作为代码块语言。 发布了 v0.6.0,不检测语言,直接返回匹配值