List Column

Overview

List Column layout will allow you to create multi column layout using unordered lists (i.e. - list item). There are 3 different ways you can do so using MCL snippets i.e.

  1. Apply at the specific list block using hashtag. This is the recommended option.
  2. Apply at the specific list block using Markdown Attributes plugin.
  3. Apply at the frontmatter. This affects ALL unordered list in that particular note

hero-mc-list-column-grid-card.png

Making it work in Live Preview

The column layout will only work on Reading View. If you want to make it work on Live Preview, there are a few options. You can encapsulate the list block in MCL's [blank-container] callout, or alternatively, using Custom Classes plugin, prepend the list block with any class e.g. (class: none)

Using hashtag i.e. #mcl/list-column

Here's an example markdown:

- list item 1 #mcl/list-column
- list item 2
- list item 3
	- sub list 3-1
	- sub list 3-2
- list item 4
- list item 5
	- sub list 5-1
- list item 6

Using this option, the number of columns or grids or cards is determined by minimum width (adjustable using Style Settings plugin), available note/page width and how many bullets. Under default settings, normal page layout can fit 3 columns/grids/cards but if there's only two bullets, it will expand to fill the space.

Using Markdown Attributes plugin

Using this approach will require Markdown Attributes plugin. Read the plugin documentation where to put the CSS class (typically at the end of the block). MCL provides the following CSS classes

For this approach, do note that there's a dot (.) before the class name. This is following how CSS classes are referred in CSS file.

Here's an example markdown:

---
cssClass: two-column-list
---

- list item 1 #mcl/list-column
- list item 2
- list item 3
	- sub list 3-1
	- sub list 3-2
- list item 4
- list item 5
	- sub list 5-1
- list item 6
{ .two-column-list-block }

By default, there's a column ruler (vertical guide line). You may disable it via Style Settings

Note that this approach do not work well if the last bullet is indented (not part of top level list). Example here

---
cssClass: two-column-list
---

- list item 1 #mcl/list-column
- list item 2
- list item 3
	- sub list 3-1
	- sub list 3-2
{ .two-column-list-block }

Using frontmatter declaration

Using this approach, you will have to specify the css for the column type at the frontmatter (it must be located at the very top of your document, wrapped by two sets of 3 dashes i.e. ---, see example below for better understanding). MCL provides the following CSS classes

Here's an example markdown:

---
cssClass: two-column-list
---

- list item 1 #mcl/list-column
- list item 2
- list item 3
	- sub list 3-1
	- sub list 3-2
- list item 4
- list item 5
	- sub list 5-1
- list item 6

Example

example of list column



< Blank Callout | Multi Column Home | Next: List Grid >