Get the name/identifier an anchor tag
Arguments
- tag
Character string
Value
A character Name/identifier of the anchor tag
See also
Other reporting:
addFigureChunk(),
addTableChunk(),
addTextChunk(),
anchor(),
copyReport(),
getFigurePathsFromReport(),
hasAnchor(),
mergeMarkdownFiles(),
renderReport(),
renderWordReport(),
resetReport(),
trimFile()
Examples
getAnchorName('<a id="section-1"></a>')
#> [1] "section-1"
# Works also for tag name instead of id
getAnchorName('<a name="section-1"></a>')
#> [1] "section-1"