Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RFC: move YFM styles to separate package #41

Open
d3m1d0v opened this issue Dec 17, 2024 · 0 comments
Open

RFC: move YFM styles to separate package #41

d3m1d0v opened this issue Dec 17, 2024 · 0 comments
Labels
RFC Request for Comments

Comments

@d3m1d0v
Copy link
Member

d3m1d0v commented Dec 17, 2024

Description

At the moment, styles for HTML content derived from YFM markup are in the package @diplodoc/transform. These styles include the basic markdown block styles and additional YFM block styles that are plugged together.

Problem: I cannot use pure markdown-it (or another markdown parser) with basic YFM styles without adding '@diplodoc/transform` dependency.

Proposal

Create a new package for styles – @diplodoc/styles (or @diplodoc/yfm-styles, @diplodoc/base-styles, etc), and move the base styles into it.

New package should include all styles for the base Markdown blocks, such as headings, quotes adn tables. It should also include HLJS styles add declaration of CSS-API as public CSS-variables/tokens; base styles for printing mode, color values for light and dark themes (in the feature).

This will allow to use styling of content from YFM without having to use the Diplodoc infrastructure.

@d3m1d0v d3m1d0v added the RFC Request for Comments label Dec 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
RFC Request for Comments
Projects
None yet
Development

No branches or pull requests

1 participant