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

调用 HTML2Markdown 转换 行内代码 <code> 内容末尾内容丢失问题 #71

Closed
degbug opened this issue Jun 12, 2020 · 1 comment
Assignees

Comments

@degbug
Copy link

degbug commented Jun 12, 2020

请先看《提问的智慧》,并尝试到黑客派搜寻资料解决问题。


描述问题

<code>name</code>或者<code>getValue</code><code>Method</code>等,最后的字母会丢失,烦请看看什么问题,谢谢!

代码如下:

package main

import (
	"fmt"

	"github.com/88250/lute"
)

func main() {
	luteEngine := lute.New() // GFM support and Chinese context optimization have been enabled by default
	md, _ := luteEngine.HTML2Markdown(`
	<p>测试 <code>nameme</code> 属性。调用  <code>getValue</code> 时 <code>Method</code></p>
	`)
	fmt.Println(md)
	// <p><strong>Lute</strong> - A structured Markdown engine.</p>
}

输出的结果如下:

测试 `namem` 属性。调用  `getValu` 时 `Meth`

期待的结果

code中的内容不要丢失,猜测可能是术语拼写修正的问题

截屏或录像

如果可能,请尽量附加截图或录像来描述你遇到的问题。
image

其他信息

请提供其他附加信息帮助我们诊断问题。

@88250 88250 self-assigned this Jun 13, 2020
@88250
Copy link
Owner

88250 commented Jun 13, 2020

感谢反馈,已经定位到问题,稍后修复。

请关注新版本发布,谢谢。

@88250 88250 changed the title 调用 HTML2Markdown 转换 行内代码<code>内容末尾内容丢失问题 调用 HTML2Markdown 转换 行内代码 <code> 内容末尾内容丢失问题 Jun 13, 2020
@88250 88250 closed this as completed in b26435f Jun 13, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants