View source: R/parse_annotation.R
parse_single_annotation | R Documentation |
This function converts a markdown-style hierarchical annotation into a data.frame with from -> to columns. For example a text like this:#' #Heading 1 #Heading 2 ##Heading 2.1 ##Heading 2.2 #Heading 3 would be converted to a data.frame with all the links (e.g. Heading 2 -> Heading 2.1)
parse_single_annotation(note, pattern = "#+")
note |
a length 1 character vector, with an annotation to be parsed |
pattern |
a length 1 character vector, with the pattern to parse the
annotation. This is passed to |
a data.frame
parse_single_annotation(
"#1 ##1.1 ##1.2 ###1.2.1 ###1.2.2 ##1.3 #2 ##2.1 ###2.1.1"
)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.