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

存储在assets目录的图片名带有下划线则无法成功显示 #383

Open
strokebun opened this issue Nov 30, 2020 · 2 comments
Open

Comments

@strokebun
Copy link

strokebun commented Nov 30, 2020

如果存储在assets目录的图片带有下划线,例如 test_1.jpg,使用RichText加载该图片时,markdown文本为
file:///android_assets/test_1.jpg,由于存在两个下划线,该文本被当作 斜体 先处理,而不是以图片格式处理。
该实现位于 com.zzhoujay.markdown.parser.TagHandlerImpl

@AlbertZyc
Copy link

干脆fork一下自己改,合并过去

@wujushan
Copy link

wujushan commented Jan 4, 2021

加载markdown文件,图片放在assets下,图片名字没有下滑线,同样也无法显示图片:
![](file:///android_asset/helper.png)

2021-01-04 14:41:16.576 20238-20273/zhou.demo I/RichText: RichTextPool --> cache hit -- text
2021-01-04 14:41:16.581 20238-20273/zhou.demo I/RichText: DefaultImageGetter --> cache hit -- memory > file:///android_asset/helper.png
2021-01-04 14:41:16.587 20238-20238/zhou.demo V/PhoneWindow: DecorView setVisiblity: visibility = 4, Parent = null, this = DecorView@d71cfba[]
2021-01-04 14:41:16.598 20238-20238/zhou.demo I/InputTransport: Create ARC handle: 0x7964fac760
2021-01-04 14:41:16.599 20238-20238/zhou.demo V/PhoneWindow: DecorView setVisiblity: visibility = 0, Parent = android.view.ViewRootImpl@ada9e61, this = DecorView@d71cfba[MyRichTextActivity]
2021-01-04 14:41:16.602 20238-20238/zhou.demo I/RichText: RichTextPool --> cached
2021-01-04 14:41:16.637 20238-20238/zhou.demo E/GraphicExt: GraphicExtModuleLoader::CreateGraphicExtInstance false

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

3 participants