如何在闪亮的应用程序中使用withMathJax函数显示HTML的内容?

时间:2019-06-16 09:53:13

标签: r shiny r-markdown

我使用withMathJax(includeMarkdown(“ Untitled.md”))在闪亮的应用程序中输出html。但是,尽管在本地文件中生成的html包含了内容列表,但是诸如#Grade 1,## Grade 2这样的html的内容无法显示在闪亮的位置。

有人可以帮忙吗?

谢谢

________
Untitled.md files

---
title: "title"
author: "Garrett"
date: "July 10, 2014"
output: 
 html_document: 
   theme: readable
   toc: yes
---

# Grade 1

## Grade 2

_______________


ui <- fluidPage(
 mainPanel("xx", 
          #align = "left",
          class = 'rightAlign',
          column(width = 12,
                 align = "left",
                 br(),
                 #htmlOutput("inc")
                 uiOutput('markdown')
          )
 )
)

server <- function(input, output) {
 output$markdown <- renderUI({
   withMathJax(includeMarkdown("Untitled.md"))
 })
}
)

shinyApp(ui, server)

0 个答案:

没有答案
相关问题