Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Text 方法是否应该渲染 NodeCodeSpanContent 的内容? #146

Closed
2234839 opened this issue May 23, 2021 · 1 comment
Closed

Text 方法是否应该渲染 NodeCodeSpanContent 的内容? #146

2234839 opened this issue May 23, 2021 · 1 comment

Comments

@2234839
Copy link

2234839 commented May 23, 2021

描述问题 Describe the problem

case NodeText, NodeLinkText, NodeBlockRefText, NodeBlockEmbedText, NodeFootnotesRef:

对于如下html,调用 HTML2Text 方法得到的是空字符串

<h2>
  <a href="https://developer.mozilla.org/zh-CN/docs/Web/JavaScript/Reference/Global_Objects/ReferenceError">
    <code data-type="NodeCodeSpan">ReferenceError</code>
  </a>
</h2>

期待的结果 Expected result

期望得到 "ReferenceError"

版本环境 Version environment

github.com/88250/lute v1.7.3-0.20210520091845-ae9b10c9525e

@88250
Copy link
Owner

88250 commented May 29, 2021

这个最好重写一个 Text,内置的这个已有应用里使用的地方比较多,目前不大敢修改。

@88250 88250 closed this as completed May 29, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants