Merged
Conversation
Renames `blogatto/config/markdown` to `blogatto/config/post` to reflect that it configures post discovery and rendering rather than the markdown format specifically. Builder is reshaped: `internal/builder/blog.gleam` becomes `internal/builder/post.gleam`, and markdown-only rendering is extracted to `internal/builder/post/markdown.gleam` so other source formats (e.g. djot) can be added as sibling submodules. BREAKING CHANGE: `blogatto/config/markdown` module renamed to `blogatto/config/post`; `MarkdownConfig` renamed to `PostConfig`; `Config.markdown_config` field renamed to `post_config`; `config.markdown()` setter renamed to `config.post()`; `markdown.markdown_path()` renamed to `post.path()`. `Components`, `Options`, and `Alignment` move with the module. Component setter names unchanged; only the module qualifier changes.
Add jot-backed renderer for `.dj` and `.djot` post sources, sharing the same `Components`, frontmatter, and `Post(msg)` pipeline as markdown. Mixed-format blogs are supported; each post directory picks its own extension. Markdown `Options` and Smalto syntax highlighting remain markdown-only. Djot-only inline constructs (span, ins, math, symbols) fall back to raw Lustre elements with attributes preserved. Renames `docs/markdown-components.md` to `docs/post-components.md` to reflect that components apply to both formats. Closes #45
|
✔️ 4a63a5e...1959b67 - Conventional commits check succeeded. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
.djand.djotpost sources, sharing the sameComponents, frontmatter, andPost(msg)pipeline as Markdown.docs/(renamemarkdown-components.md→post-components.md); document MarkdownOptionsand Smalto highlighting as Markdown-only.Closes #45
Test plan
gleam test— 502 passed, 0 failures (31 djot unit tests + 3 builder integration tests covering.dj,.djot, mixed.md/.djot)gleam runfromexamples/simple_blog/builds the newdjot-showcasepost end-to-endgleam format src testclean