diff --git a/docs/Manifest.toml b/docs/Manifest.toml index f25eaa8..bda3d07 100644 --- a/docs/Manifest.toml +++ b/docs/Manifest.toml @@ -421,6 +421,12 @@ git-tree-sha1 = "2444ff682d19291efd5944578258fc9657f1450f" uuid = "d0879d2d-cac2-40c8-9cee-1863dc0c7391" version = "0.0.2" +[[MarkdownTables]] +deps = ["ArgCheck", "DisplayAs", "DocStringExtensions", "Tables"] +git-tree-sha1 = "65dff26519116033543e644fb8cf2e5869469c0b" +uuid = "1862ce21-31c7-451e-824c-f20fa3f90fa2" +version = "1.1.0" + [[MbedTLS]] deps = ["Dates", "MbedTLS_jll", "MozillaCACerts_jll", "Random", "Sockets"] git-tree-sha1 = "6872f9594ff273da6d13c7c1a1545d5a8c7d0c1c" diff --git a/docs/Project.toml b/docs/Project.toml index 7416adf..d625653 100644 --- a/docs/Project.toml +++ b/docs/Project.toml @@ -1,4 +1,5 @@ [deps] Documenter = "e30172f5-a6a5-5a46-863b-614d45cd2de4" Literate = "98b081ad-f1c9-55d3-8b20-4c87d4299306" +MarkdownTables = "1862ce21-31c7-451e-824c-f20fa3f90fa2" Plots = "91a5bcdd-55d7-5caf-9e0b-520d859cae80" diff --git a/docs/src/tips.md b/docs/src/tips.md index bf2495a..797c5d9 100644 --- a/docs/src/tips.md +++ b/docs/src/tips.md @@ -40,6 +40,16 @@ HTML formats. img = DisplayAs.Text(DisplayAs.PNG(img)) ``` +### [Printing tables](@id printing-tables) + +Tables that support the [Tables.jl](https://tables.juliadata.org/) interface can be included in the output with the lightweight package [MarkdownTables.jl](https://github.com/tpapp/MarkdownTables.jl). + +```@eval +using MarkdownTables +table = [(a = 1, b = 2), (a = 3, b = 4)] +table |> markdown_table() +``` + ### [Adding admonitions using compound line filtering](@id admonitions-md) Admonitions are a useful feature for drawing attention to particular elements of