# Markdown tables

**URL:** <https://discourse.julialang.org/t/markdown-tables/11385>\
**Category:** General Usage\
**Tags:** question, package, proposal, markdown\
**Created:** [June 3, 2018, 12:51pm UTC](https://discourse.julialang.org/t/markdown-tables/11385 "2018-06-03T12:51:17Z")\
**Posts on this page:** 3\
**Page:** 2

<div class="post-metadata">

**Author:** ![yakir12](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/yakir12/32/297_2.png) [@yakir12](https://discourse.julialang.org/u/yakir12)\
**Post date:** [June 4, 2018, 10:14am UTC](https://discourse.julialang.org/t/markdown-tables/11385/21 "2018-06-04T10:14:50Z")

</div>

OK, my good people…  
I’ve rewritten the whole thing ([here](https://github.com/yakir12/MDtables.jl)). It now supports all three types of pandoc tables (simple\_tables, multiline\_tables, and grid\_tables but not pipe\_tables), and therefore cells with multiple lines as well. I didn’t bother with alignment.  
Why is this half-🐎ed? Because @ExpandingMan was right:  
Even if I populate my table with the actual values I want in the resulting document, and the resulting table contains actual data instead of differently sized tags (for Mustache.jl to replace), I get hit by including a link. So the actual link is typically much wider than how it gets rendered in the resulting document (where it turns into a hyperlink). So the table still doesn’t look close to how I want it. So I will be abandoning this markdown method and listen to wiser people than me…

But, for what it’s worth, the code is out there, fork it!

```julia
julia> using MDtables

julia> a = [string(round(rand(), rand(1:6))) for i in 1:3, j in 1:5]
3×5 Array{String,2}:
 "0.9" "0.69741" "0.1" "0.55514" "0.9299"
 "0.32" "0.354" "0.759" "0.4579" "0.4"   
 "0.873" "0.2069" "0.1" "0.292993" "0.86"  

julia> a[1,2] = "row 1\nrow 2"
"row 1\nrow 2"

julia> open("a.md", "w") do o
       print(o, print(GridTable, a))
       end

```

results in this:

```julia
+--------+------+--------+--------+--------+
|0.86284 |row 1 |0.044129|0.946186|0.3 |
| |row 2 | | | |
+========+======+========+========+========+
|0.235 |0.249 |0.295207|0.081 |0.764316|
+--------+------+--------+--------+--------+
|0.418278|0.8516|0.82 |0.38 |0.27575 |
+--------+------+--------+--------+--------+

```

---

<div class="post-metadata">

**Author:** ![yakir12](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/yakir12/32/297_2.png) [@yakir12](https://discourse.julialang.org/u/yakir12)\
**Post date:** [November 14, 2023, 8:42am UTC](https://discourse.julialang.org/t/markdown-tables/11385/24 "2023-11-14T08:42:10Z")

</div>

@Ronis_BR permanently solved this. See [https://discourse.julialang.org/t/ann-prettytables-jl-v2-3-0-markdown-back-end](https://discourse.julialang.org/t/ann-prettytables-jl-v2-3-0-markdown-back-end)

I’ve therefore archived [GitHub - yakir12/MDtables.jl](https://github.com/yakir12/MDtables.jl)

---

<div class="post-metadata">

**Author:** ![gitboy16](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/gitboy16/32/24906_2.png) [@gitboy16](https://discourse.julialang.org/u/gitboy16)\
**Post date:** [November 14, 2023, 9:14am UTC](https://discourse.julialang.org/t/markdown-tables/11385/25 "2023-11-14T09:14:00Z")

</div>

Just wanted to mention a few package in the R ecosystem which I find really good with no good alternative even in the python ecosystem:

- flextable : [GitHub - davidgohel/flextable: table farming](https://github.com/davidgohel/flextable)
- knitr : [GitHub - yihui/knitr: A general-purpose tool for dynamic report generation in R](https://github.com/yihui/knitr)
- tinytex : [GitHub - rstudio/tinytex: A lightweight, cross-platform, portable, and easy-to-maintain LaTeX distribution based on TeX Live](https://github.com/rstudio/tinytex)
- rticles : [GitHub - rstudio/rticles: LaTeX Journal Article Templates for R Markdown](https://github.com/rstudio/rticles)

Other packages for Reproducible Research: [https://cran.r-project.org/web/views/ReproducibleResearch.html](https://cran.r-project.org/web/views/ReproducibleResearch.html)

The above is probably amongst one of the few reasons I am still using R.

[Previous page](https://discourse.julialang.org/t/markdown-tables/11385.md?page=1)
