Open maelle opened 6 years ago
For context, I'm trying to parse READMEs that GitHub considers to be the preferred README https://developer.github.com/v3/repos/contents/#get-the-readme and anyway I must be missing something, surely if GitHub can render this table there is a way for me to correctly parse the Markdown file. 🤔
possibly related https://github.com/commonmark/CommonMark/issues/490
For my very specific use case I'll use regex to extract the html of the 1st table but it seems suboptimal of course!
I am trying to parse this Markdown file
It's full of empty lines due to knitr rendering it from Rmd I guess. On GitHub it renders well. But when I try to parse it I cannot get the structure that's in the .Rmd: the table is either separated in different blocks, or if I remove empty lines, it gets glued to the rest of the README.
Created on 2018-09-04 by the reprex package (v0.2.0).