Tag Maker

Processor to quickly write ::: tags as comments

Inspiration

As I was writing my new course, I found that having to do two sets of ::: and something to put in between two {} annoying, so this is a quick processor to do that for me as a tag


source

convert_layout

 convert_layout (cell, layout, start=False)

Parses cell formatted with ::: {$something}, and potentially :::


source

convert_shortcuts

 convert_shortcuts (cell)

source

LayoutProc

 LayoutProc (nb)

A proc that will automatically change #| css format to ::: {format} … :::

An example usage of this proc is writing something such as (just the content):

"""
#| layout .column-margin
Some test stuff!
""";

In a markdown cell and then running the processor

Some test stuff!

Or you can split it up into multiple cells by dictating start and end:

"""
#| layout .column-margin start
Some test stuff!
""";
"""
#| layout end
""";

Some test stuff!