Open rafapolo opened 5 years ago
We're also having this issue
@xdamman I guess its related to parsing the metadata of the first paragraph... if you can give me some light I could try to do some nodejs to help ;)
Sorry I haven't been touching this repo in more than a year. I've shifted my attention to the climate emergency 🌍🔥⏳(if other open source developers want to join, please ping me!)
Any chance anyone else can take a look?
To compile the refugees situations are also being an emergency... I tried, but not comfortable with nodejs or medium outputs to fix it... medium-2-md & medium-to-markdown alternatives are even more obsolete.
my guess is that the type in the first paragraph is not being correctly parsed. https://github.com/xdamman/mediumexporter/blob/master/lib/utils.js#L149 line #39 is being, somehow, ignored https://codebeautify.org/jsonviewer/cb88e380
I am facing the same issue as well. Missing the first image, but all other images come up correctly.
Had to export hundreds of medium posts for a project and realized a wrong pattern in which the first image are not captured by mediumexporter.
to reproduce:
markdown output:
Algorithm misses first image, but not sure how to fix the parser.