Closed trevorld closed 10 months ago
I wonder if it's easier to add arguments to .img.cap() instead of forking it. Thanks!
One approach could be:
.img.cap()
with the target output format like output = "md"
or output = "rst"
.img.cap()
with this argument{knitr}
codebase already has a standardized way to get a string of the target output formatI'll take care of the rest of work. Thank you!
- Presumably html output needs the html escaped image alt and latex output needs the label prefix?
Yes, that's about right. For rst output, the label won't be created.
fig.cap
andfig.alt
img.cap.rst()
is a light fork ofimg.cap()
inhooks-html.R
that:alt = TRUE
alt = FALSE
won't try to add a figure "label" to the captionfixes #2023