Open tuchida opened 10 years ago
For example, if replace Oktavia.eof
by space, position is not shifted.
https://github.com/tuchida/oktavia/compare/replace_eob_to_space
It have already replaced Oktavia.eof
by space.
https://github.com/shibukawa/oktavia/blob/8ed26702c90994b621dc426dd16f84debe728799/src/oktavia-web-runtime.jsx#L269
Then I think this is better than. https://github.com/tuchida/oktavia/compare/content_with_eob
The regular expression do not have global flag, so I added.
I made search index in the way, and tried search for 'いう'. However underlined in 'うえ'.
I think that the margin equals number of times call
addEndOfBlock
.content
does not includeOktavia.eob
.HTMLParser
executed as follows:addEndOfBlock
on start tag.addWord
on text node.Which is wrong?