Skip to content

remark-custom-blocks nested sections and custom properties #256

Open
@aiwatko

Description

@aiwatko

I'm trying to attempt these two things with no success fo far:

  1. Nested sections:
    i.e.
    [[section]]
    | # title
    | [[nestedSection]]

  2. Properties passed to the section:
    i.e.
    [[section bgColor="blue" width="1024"]]
    which would result in:

section: {
  classes: 'section',
  bgColor: 'blue',
  width: '1024'
}

This approach would allow more flexibility with section, i.e. there would be just one section instead of creating:

sectionBgBlue: {
  classes: 'sectionBgBlue'
}.
sectionWidthDesktop: {
  classes: 'sectionWidthDesktop'
}

Is any of those possible? Thanks in advance!

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions