Closed AriaLyy closed 4 years ago
http://localhost:5555即可查看
need a space after the link, http://localhost:5555 即可查看
@curbengh Should we make encodeURL
more foolproof?
As in ignoring invalid links? Validating link is more of a side-effect of encodeURL
, but I find it quite useful.
As in ignoring invalid links? Validating link is more of a side-effect of
encodeURL
, but I find it quite useful.
Then add foolproof in hexo-renderer-marked
instead.
Remove encodeURL
from the plugin? https://github.com/hexojs/hexo-renderer-marked/blob/29b49aad3c55ec3d7563d006318bede45cbb54f9/lib/renderer.js#L56
Alternatively, we could mention this error in https://hexo.io/docs/troubleshooting.
Remove
encodeURL
from the plugin? https://github.com/hexojs/hexo-renderer-marked/blob/29b49aad3c55ec3d7563d006318bede45cbb54f9/lib/renderer.js#L56
Simply add a try... catch...
will be fine.
Check List
Please check followings before submitting a new issue.
hexo version
to check)Expected behavior
No error is reported when executing the command
Actual behavior
bug message
How to reproduce?
hexo g
Is the problem still there under "Safe mode"?
yes
Environment & Settings
Your site
_config.yml
(Optional)Your theme
_config.yml
(Optional)Hexo and Plugin version(
npm ls --depth 0
)Your package.json
package.json
Others