Skip to content
Snippets Groups Projects

fixed sidebar

Merged arsenij.ustjanzew requested to merge sidebar into master
1 unresolved thread

Merge request reports

Loading
Loading

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
  • added 1 commit

    • 419deae0 - added further parameter for image insertion: height, alternative text, description;

    Compare with previous version

  • arsenij.ustjanzew resolved all threads

    resolved all threads

  • 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("![{image_alt_text}]({image})\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")
  • added 1 commit

    Compare with previous version

  • added 7 commits

    Compare with previous version

  • arsenij.ustjanzew added 16 commits

    added 16 commits

    Compare with previous version

  • jens.preussner added 1 commit

    added 1 commit

    • 1770abfc - Split add_to_sidebar in character and function signatures

    Compare with previous version

  • Requires testing before merge. Waiting for tests to be merged to master.

  • added 1 commit

    Compare with previous version

  • jens.preussner mentioned in commit 9355e57b

    mentioned in commit 9355e57b

  • Please register or sign in to reply
    Loading