Show fig-alt in the taught snippets of two examples - #2143
Draft
cwickham wants to merge 1 commit into
Draft
Conversation
PR #2138 added fig-alt to the live copies of two examples but not to the shown syntax next to them. A reader who inspects the page HTML would see an alt attribute that the shown syntax does not produce. Add the same fig-alt to the taught snippets, with placeholder values that match the neighboring options: - _cross-references-listings.qmd: add `#| fig-alt: Figure alt text` to the shown code cell, next to `fig-cap: Figure caption`. - cross-references-divs.qmd: add `{fig-alt="Alt text"}` to the shown `` in the div syntax example. Re-execute the freeze for cross-references.qmd, which includes the listings partial. cross-references-divs.qmd uses the markdown engine and has no freeze entry.
Contributor
📝 Preview Deployment🔍 Full site preview: https://deploy-preview-2143.quarto.org 🔄 Modified Documents |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Follow-up to #2138, which added
fig-altto the live copies of two examples but not to the shown syntax next to them. A reader who inspects the page HTML would see an alt attribute that the shown syntax does not produce.This PR adds the same
fig-altto the taught snippets, with placeholder values that match the neighboring options:_cross-references-listings.qmd: add#| fig-alt: Figure alt textto the shown code cell, next tofig-cap: Figure caption.cross-references-divs.qmd: add{fig-alt="Alt text"}to the shownin the div syntax example.The freeze for
cross-references.qmd(which includes the listings partial) is re-executed.cross-references-divs.qmduses the markdown engine and has no freeze entry.