alienzhou / web-highlighter

✨ A no-runtime dependency lib for text highlighting & persistence on any website ✨🖍️
https://alienzhou.github.io/web-highlighter/
MIT License
888 stars 144 forks source link

From store docs fix #102

Closed connorff closed 2 years ago

connorff commented 2 years ago

I was looking through the docs and noticed an inconsistency in the order of parameters to the fromStore call. Based on the function definition, the order of the parameters is startMeta endMeta, text, id, and extra. This is called correctly in the complex example section but not in the usage section.

This PR updates the parameters to the correct order in the usage section.

connorff commented 2 years ago

Ah I notice #100 does the same thing. Feel free to close this in favor of theirs. Although this PR updates both language's READMEs.