Style editor Markdown with .markdown-body and add ::: design blocks
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
ca0b3c311c
commit
5eb36ad3e9
12 files changed
+683
-17
No files matched your search
@@ -138,7 +138,22 @@ public sealed partial class RouteSmokeTests : IDisposable
|
||||
|
||||
var html = await client.GetStringAsync(new Uri("/patrons", UriKind.Relative));
|
||||
|
||||
html.ShouldContain("Förderverein"); // the page body, rendered from Markdown
|
||||
html.ShouldContain("Der Förderverein unterstützt die Schule."); // the page body, rendered from Markdown
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public async Task Content_page_body_carries_the_markdown_styles_and_blocks()
|
||||
{
|
||||
// The editor-content styles in app.css all hang off .markdown-body, and the
|
||||
// design blocks off the class a ":::" container renders. Assert both reach
|
||||
// the markup of a real page, so a renamed wrapper or a pipeline without
|
||||
// custom containers fails here instead of silently unstyling the site.
|
||||
var client = _factory.CreateClient();
|
||||
|
||||
var html = await client.GetStringAsync(new Uri("/patrons", UriKind.Relative));
|
||||
|
||||
html.ShouldContain("class=\"markdown-body\"");
|
||||
html.ShouldContain("<div class=\"kennzahlen\">");
|
||||
}
|
||||
|
||||
[Fact]
|
||||
|
||||
Reference in new issue
Block a user