mirror of https://github.com/koreader/koreader
Pass dict_path to dictionary fix_html_func (#7057)
That way images can be made to work in a more generic, portable manner, such as: ``` return function(html, dict_path) html = html:gsub('<rref[^>]*>([^<]*%.jpg)</rref>', '<img src="'..dict_path..'res/%1">') return html end ``` Cf. <https://github.com/koreader/koreader/issues/6056>.reviewable/pr7062/r1
parent
4548ced866
commit
b8bed49a61
Loading…
Reference in New Issue