Test case showing code
element is blocks & spans
#50
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
The docs provide the list of elements and the parameters passed to the functions that generate them, including a
code
&codespan
tag. It appears, based on my digging into this issue in spectacle thatcode
is actually used for bothcode
andcodespan
elements. My understanding (and the understanding of the Spectacle guys) appear to be thatcode
is for code blocks, wrapped in apre
, whereascodespan
is for inline code. However, we have this test:That indicates that the
code
work on inline blocks. However, the test I just added indicates thatcode
is also used for code blocks as well. So there's currently no hook for thecodespan
element currently indicated in the docs.I'm opening up the test case to demonstrate the issue and get some guidance on how to fix it. Thoughts?