fixed sidebar
1 unresolved thread
1 unresolved thread
Merge request reports
Activity
- Resolved by arsenij.ustjanzew
- Resolved by arsenij.ustjanzew
- Resolved by arsenij.ustjanzew
added 1 commit
- 419deae0 - added further parameter for image insertion: height, alternative text, description;
- Resolved by arsenij.ustjanzew
- Resolved by arsenij.ustjanzew
- Resolved by arsenij.ustjanzew
112 116 #' @param raw Whether or not to emit solely the markdown image code. 117 #' @param width The width of the image. 118 #' @param height The height of the image 119 #' @param description An image description below the image. 113 120 #' 114 121 #' @return A character string containing the evaluated component 115 render_image <- function(image, image_alt_text = NULL, title = NULL, raw = FALSE) { 122 render_image <- function(image, image_alt_text = NULL, title = NULL, raw = FALSE, width = "100%", height = "auto", description = NULL) { 116 123 if(is.null(image_alt_text)) { 117 124 image_alt_text <- image 118 125 } 119 content <- glue::glue("\n", image_alt_text = image_alt_text, image = image) 126 if(is.numeric(width)) width <- paste0(width,"px") 127 if(is.numeric(height)) height <- paste0(height,"px") 128 content <- paste0("<img src='",image,"' alt='",image_alt_text,"' style='width:",width,"; height:",height,"'/></br>\n") 129 if(!is.null(description)) content <- paste0(content,"*",description,"*\n\n") changed this line in version 3 of the diff
added 7 commits
-
e9d0cebb...6c1ffd72 - 6 commits from branch
master
- d09c0d5e - merged with master and resolved conflicts
-
e9d0cebb...6c1ffd72 - 6 commits from branch
added 16 commits
-
d09c0d5e...a3db7236 - 15 commits from branch
master
- e9d37e40 - merged with master, resolved conflicts
-
d09c0d5e...a3db7236 - 15 commits from branch
added 1 commit
- 1770abfc - Split add_to_sidebar in character and function signatures
added In progress label
mentioned in commit 9355e57b
Please register or sign in to reply