Skip to content

How to create tables in a marp slide deck? #62

Answered by hiraditya
hiraditya asked this question in Q&A
Discussion options

You must be logged in to vote

enabling html worked. So i followed the following steps.

  1. enable html in VSCode (https://github.com/marp-team/marp-vscode#enable-html-in-marp-markdown)
  2. add custom style
<style>
div.twocols {
  margin-top: 35px;
  column-count: 2;
}
div.twocols p:first-child,
div.twocols h1:first-child,
div.twocols h2:first-child,
div.twocols ul:first-child,
div.twocols ul li:first-child,
div.twocols ul li p:first-child {
  margin-top: 0 !important;
}
div.twocols p.break {
  break-before: column;
  margin-top: 0;
}
</style>
  1. slide code
---
# Tiling can improve the access pattern

<div class="twocols">

## LHS Title
- item

<p class="break"></p>

![right height:350px](tiling-good-access.png)
</div>

---

A…

Replies: 3 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by hiraditya
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants