obsidian-leaflet
obsidian-leaflet copied to clipboard
Refactor frontmatter location parsing to util function
Pull Request Description
Fixes issues with frontmatter location parsing, and refactors it to a central function.
Changes Proposed
Refactors the frontmatter location parsing to a util function, and enables the usage of strings in that field, e.x.:
other text [<lat>,<long>]<lat>,<long><percent>%,<percent>%
Related Issues
Fixes #431
Checklist
- [x] I have read the contribution guidelines and code of conduct.
- [x] I have tested the changes locally and they are working as expected.
- [x] I have added appropriate comments and documentation for the code changes.
- [x] My code follows the coding style and standards of this project.
- [x] I have rebased my branch on the latest main (or master) branch.
- [x] All tests (if applicable) have passed successfully.
- [x] I have run linters and fixed any issues.
- This project doesn't seem to have a linter of choice
- [x] I have checked for any potential security issues or vulnerabilities.