line / conflr

Post R Markdown documents to Confluence
https://line.github.io/conflr/
GNU General Public License v3.0
130 stars 28 forks source link

How to insert a math equation? #132

Closed joscani closed 2 years ago

joscani commented 3 years ago

I have tried

 $Kpi1 = 100 \cdot \dfrac{V_{2}-V_{0}}{V_{0}}$

but It's not rendered in confluent. In confluent we have MathJax Inline Equation macro.

yutannihilation commented 3 years ago

Sorry, I can't reproduce the issue, it's rendered fine on my Confluence. Could you provide a bit more details e.g. what errors you see, a minimal reproducible Rmd?

BenoitFayolle commented 3 years ago

Hello! I have the same issue.

---
title: "R Notebook"
output:
  html_document:
    df_print: paged
editor_options:
  chunk_output_type: inline
---

 $Kpi1 = 100 \cdot \dfrac{V_{2}-V_{0}}{V_{0}}$

Renders a blank confluence page with the following badge at the top :

image

Console output :

conflr:::confl_create_post_from_Rmd_addin()

processing file: test.Rmd
  |..................................................................................................................................| 100%
  ordinary text without R code

output file: test.knit.md

/Applications/RStudio.app/Contents/MacOS/pandoc/pandoc +RTS -K512m -RTS test.utf8.md --to commonmark --from markdown+autolink_bare_uris-tex_math_single_backslash-tex_math_dollars-raw_tex --output test.md --standalone --wrap=none 

Listening on http://127.0.0.1:4310

Output created: test.md
BenoitFayolle commented 3 years ago

My bad, documentation says I need LaTeX Math addon. We don't have it yet. Hopefully solves it for OP