Parsing fails on mobile
Jarzka opened this issue · comments
Hi
I noticed that when I used markdown-yaml-metadata-parser on browser, the metadata parsing fails on mobile devices. I was surprised about this. The same thing happens on desktop if I use responsive design mode on Chrome or Firefox. In both browsers, if that mode is on, the returned metadata is empty JS object. If that mode is off, the metadata is parsed correctly.
How is it possible that the metadata parsing fails on mobile?
Thanks @Jarzka ,
do you have a sample repo to test this issue? I'm not able to replicate it.
By responsive design mode, do you mean the mobile device simulation on desktop?
Thanks,
Alberto
Unfortunately I didn't have time to create a sample repo out of this issue so I switched to another library (and moved the parser to backend with the same effort).
Yes, by responsive design mode I mean the mobile device simulation on desktop. This issue happened on both Chrome and Firefox responsive design mode, and on a physical mobile device.
Hi,
the issue was related to platform detection.
I've refactored the module in version 2.1.0 in order to be indipendent from the platform and just detect the new line char in the provided text.
Thanks for your input,
Alberto
Good to hear you found the source for the bug.