icewind1991 / files_markdown

Nextcloud markdown editor
GNU Affero General Public License v3.0
291 stars 27 forks source link

R Markdown support? #38

Open Spartachetto opened 7 years ago

Spartachetto commented 7 years ago

I have doubts if this feature is more apt for this app or the text editor. I already opened an issue there: Manage the file extensions associated with texteditor; it is more broad but related.

R Markdown is a file format which mixes text (markdown syntax) and code (R syntax). R is a programming language with a strong user base in statistics and data analysis ( here you find one up to date "popularity context" which shows the diffusion of the language)

A support of the file format would be great.

I see two possibilities:

  1. this markdown editor opens .Rmd files and shows the formatted markdown text properly. In addiction it shows the syntax part as unformatted or indented text (the easy solution)
  2. this markdown editor and/or text editor opens .Rmd files and shows the formatted markdown text properly. In addiction it shows the syntax part with syntax highlighting (the really hard solution!)

Is there an interest at least for the first solution?


unrelated issue: The Markdown Editor is really a cool app! Thank you

Spartachetto commented 7 years ago

Here is the repository for rmarkdown

https://github.com/rstudio/rmarkdown

It could be of some use, even if most of the code is in R

bepolymathe commented 5 years ago

Any news about this ? I would be interesting to be able to open .rmd files...

Spartachetto commented 5 years ago

@icewind1991 I tried to save both the standard demo rmarkdown file and the presentation as .md files. The rendering is good enough, in my humble opinion.

So the first possibility (the one without syntax highlighting of R code) is really a low hanging fruit. It would be enough to allow the markdown editor to open the .Rmd files.

Thank you for the markdown editor!