Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adjacent challenge block quotes are parsed as one #1

Open
zkamvar opened this issue May 12, 2020 · 0 comments
Open

Adjacent challenge block quotes are parsed as one #1

zkamvar opened this issue May 12, 2020 · 0 comments

Comments

@zkamvar
Copy link
Contributor

zkamvar commented May 12, 2020

For example, in episode 3 of the git lesson there are two challenge blocks adjacent to each other: http://swcarpentry.github.io/git-novice/03-create/index.html, but the get_blocks() function is only returning one continuous block quote.

Note that I can get around this with the graph representation or maybe inserting a break after the tag, but it's still annoying nonetheless.

library("up2code")
git <- get_lesson("swcarpentry/git-novice")
#> cloning into '/tmp/Rtmp6aov4N/swcarpentry--git-novice'...
#> Receiving objects:   1% (84/8345),   42 kb
#> Receiving objects:  11% (918/8345),  394 kb
#> Receiving objects:  21% (1753/8345),  590 kb
#> Receiving objects:  31% (2587/8345), 2427 kb
#> Receiving objects:  41% (3422/8345), 6381 kb
#> Receiving objects:  51% (4256/8345), 7406 kb
#> Receiving objects:  61% (5091/8345), 8102 kb
#> Receiving objects:  71% (5925/8345), 8407 kb
#> Receiving objects:  81% (6760/8345), 8647 kb
#> Receiving objects:  91% (7594/8345), 8871 kb
#> Receiving objects: 100% (8345/8345), 10134 kb, done.
git$episodes$`03-create.md`$challenges
#> {xml_nodeset (1)}
#> [1] <block_quote>\n  <heading level="2">\n    <text xml:space="preserve">Plac ...

Created on 2020-05-12 by the reprex package (v0.3.0)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant