Skip to content

Move two column layout into fences using markdown-it-container. #685

Open

Description

@muffinresearch

Today there is code like this:

<!-- END: Single Column Body Module -->

<!-- Two Column Body Module -->

{% capture col_1_content %}

Help users separate their browser activities with [Contextual Identities](https://developer.mozilla.org/docs/Mozilla/Add-ons/WebExtensions/API/contextualIdentities) a.k.a. Containers. Give groups of tabs their own local browser storage: cookie store and local data in localStorage and indexedDB. This keeps details such as site preferences, signed in sessions, and ad tracking data private to the tabs.

{% endcapture %}

{% capture col_2_content %}

![Containers-screenshot](/assets/img/documentation/develop/containers.png "A screenshot of a container dropdown menu, which includes Personal, Work, Banking, and Shopping containers, and the option to Manage Containers")

{% endcapture %}
{% include modules/two-column.liquid
	col_1: col_1_content
	col_2: col_2_content
%}

<!-- END: Two Column Body Module -->

This could be simplified into some markdown extensions instead. This could look something like this:

::: 2-column-layout
:::: column-1
Help users separate their browser activities with [Contextual Identities](https://developer.mozilla.org/docs/Mozilla/Add-ons/WebExtensions/API/contextualIdentities) a.k.a. Containers. Give groups of tabs their own local browser storage: cookie store and local data in localStorage and indexedDB. This keeps details such as site preferences, signed in sessions, and ad tracking data private to the tabs.
::::

:::: column-2
![Containers-screenshot](/assets/img/documentation/develop/containers.png "A screenshot of a container dropdown menu, which includes Personal, Work, Banking, and Shopping containers, and the option to Manage Containers")
::::
:::

Activity

  1. added
    blocks-l10n
    on Jul 28, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    11ty-migrationblocks-l10n

    Type

    No type

    Fields

    Priority

    None yet

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions