RichText icon indicating copy to clipboard operation
RichText copied to clipboard

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

Open strokebun opened this issue 4 years ago • 2 comments

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

strokebun avatar Nov 30 '20 08:11 strokebun

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

AlbertZyc avatar Dec 07 '20 06:12 AlbertZyc

加载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

wujushan avatar Jan 04 '21 07:01 wujushan