Closed roosephu closed 2 years ago
Thanks for opening this issue, maintainers will get back to you as soon as possible!
It seems that the regex multiline mode flag only affects the behavior of ^
and $
.
This thread has been automatically locked since there has not been any recent activity after it was closed. It is possible issue was solved or at least outdated. Feel free to open new for related bugs.
Issue Checklist
Expected behavior
The link is to
https://www.aaaaa.com/bbbbb/ccccc/ddddd/eeeee
which is assumed external.Actual behavior
Steps to reproduce the behavior
Use
hexo-renderer-pandoc
to render this line:Environment Information
Node.js and NPM Information
Package dependencies Information
Other Information
Pandoc outputs the html code with a line break:
However, the regex in https://github.com/next-theme/hexo-theme-next/blob/master/scripts/filters/post.js#L19 uses a space ' ' to find all links so it can't find this link.
Changing the regex to
/<a[^>]*\shref="([^"]+)"[^>]*>([^<]+)<\/a>/img
solves the issue, but I'm not sure about its potential issues due to the lack of understanding to HTML.