{"action":"created","issue":{"url":"https://api.github.com/repos/aedobbyn/multicolor/issues/1","repository_url":"https://api.github.com/repos/aedobbyn/multicolor","labels_url":"https://api.github.com/repos/aedobbyn/multicolor/issues/1/labels{/name}","comments_url":"https://api.github.com/repos/aedobbyn/multicolor/issues/1/comments","events_url":"https://api.github.com/repos/aedobbyn/multicolor/issues/1/events","html_url":"https://github.com/aedobbyn/multicolor/issues/1","id":353847372,"node_id":"MDU6SXNzdWUzNTM4NDczNzI=","number":1,"title":"multicolor in RMarkdown?","user":{"login":"aedobbyn","id":4908283,"node_id":"MDQ6VXNlcjQ5MDgyODM=","avatar_url":"https://avatars2.githubusercontent.com/u/4908283?v=4","gravatar_id":"","url":"https://api.github.com/users/aedobbyn","html_url":"https://github.com/aedobbyn","followers_url":"https://api.github.com/users/aedobbyn/followers","following_url":"https://api.github.com/users/aedobbyn/following{/other_user}","gists_url":"https://api.github.com/users/aedobbyn/gists{/gist_id}","starred_url":"https://api.github.com/users/aedobbyn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aedobbyn/subscriptions","organizations_url":"https://api.github.com/users/aedobbyn/orgs","repos_url":"https://api.github.com/users/aedobbyn/repos","events_url":"https://api.github.com/users/aedobbyn/events{/privacy}","received_events_url":"https://api.github.com/users/aedobbyn/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":30,"created_at":"2018-08-24T16:22:00Z","updated_at":"2019-04-01T18:22:03Z","closed_at":null,"author_association":"OWNER","body":"Thanks to @cortinah for the suggestion!"},"comment":{"url":"https://api.github.com/repos/aedobbyn/multicolor/issues/comments/478689540","html_url":"https://github.com/aedobbyn/multicolor/issues/1#issuecomment-478689540","issue_url":"https://api.github.com/repos/aedobbyn/multicolor/issues/1","id":478689540,"node_id":"MDEyOklzc3VlQ29tbWVudDQ3ODY4OTU0MA==","user":{"login":"cortinah","id":22863380,"node_id":"MDQ6VXNlcjIyODYzMzgw","avatar_url":"https://avatars3.githubusercontent.com/u/22863380?v=4","gravatar_id":"","url":"https://api.github.com/users/cortinah","html_url":"https://github.com/cortinah","followers_url":"https://api.github.com/users/cortinah/followers","following_url":"https://api.github.com/users/cortinah/following{/other_user}","gists_url":"https://api.github.com/users/cortinah/gists{/gist_id}","starred_url":"https://api.github.com/users/cortinah/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cortinah/subscriptions","organizations_url":"https://api.github.com/users/cortinah/orgs","repos_url":"https://api.github.com/users/cortinah/repos","events_url":"https://api.github.com/users/cortinah/events{/privacy}","received_events_url":"https://api.github.com/users/cortinah/received_events","type":"User","site_admin":false},"created_at":"2019-04-01T18:22:03Z","updated_at":"2019-04-01T18:22:03Z","author_association":"CONTRIBUTOR","body":"So.. the code hook works to make a chunk run in Monaco, but I am having a hard time getting it to go back to \"normal\".\r\n\r\nThis is RMD setup chunk:\r\n```\r\n```{r setup, include=FALSE}\r\nlibrary(multicolor)\r\n\r\noptions(crayon.enabled=TRUE)\r\nknitr::opts_chunk$set(echo = TRUE)\r\nknitr::knit_hooks$set(\r\n  \r\n  mc_rmd = function(before, options, envir) {\r\n    if (before) {\r\n       return(paste(\"<div style='font-family: Monaco;'>\"))\r\n    } else {\r\n       return(paste(\"<div style='font-family: Arial; font-size: 16pt;'>\"))\r\n    }\r\n} )\r\n```\r\n\r\nand then, on the chunk we want to change:\r\n```\r\n```{r mc,results='asis', mc_rmd=TRUE}\r\nmulti_color(things$hypnotoad, type='rmd', add_leading_newline = T)\r\n```\r\n\r\nHowever, subsequent chunks in the RMD don't look \"normal\".  Changing the font back to Arial isn't working as it should\r\n"}}
{"actor":{"display_login":"cortinah"}}