SilasBerger / teaching-website

My teaching website 👨‍🏫
https://teach.silasberger.ch
1 stars 0 forks source link

Move all custom syntax to directives #26

Closed SilasBerger closed 7 months ago

SilasBerger commented 7 months ago
SilasBerger commented 7 months ago

Define mdi-specific classes in styles.scss such as:

.mdi {
  .mdi-icon {
      &.green {
          color: var(--ifm-color-success);
      }
  }
}

to allow for the use of classes in MDI directives such as

:mdi[check-circle]{.green}
SilasBerger commented 7 months ago

A thought on compatibility with https://github.com/lebalz/ofi-blog, concerning (at least) text directives:

Therefore, if this plugin should eventually become a shared asset, the adoption path should only require the creation of a plugin config. MDX code or CSS should remain fully compatible.