Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/components/overrides/PageTitle.astro
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ const hideBreadcrumbs = Astro.locals.starlightRoute.hideBreadcrumbs;

{
component && (
<div class="sl-markdown-content">
<div class="sl-markdown-content md-ignore">
<ComponentUsage component={component} />
</div>
)
Expand Down
5 changes: 3 additions & 2 deletions src/content/docs/style-guide/components/render.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,6 @@ import { Render } from "~/components";
When using the `Render` component inside partials, the original `product` is lost.

For example, if there are three files:

1. `docs/fundamentals/index.mdx`
2. `partials/dns/thing.mdx`
3. `partials/dns/thing2.mdx`
Expand Down Expand Up @@ -195,4 +194,6 @@ import { Render } from "~/components";

## Partials

<PartialsUsage />
<div class="md-ignore">
<PartialsUsage />
</div>
2 changes: 1 addition & 1 deletion src/plugins/rehype/filter-elements.ts
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ const ALLOWED_ATTRIBUTES: Record<string, string[]> = {

const UNWRAP_CLASS_NAMES = ["heading-wrapper"];

const DISALLOWED_CLASS_NAMES = ["external-link", "anchor-link"];
const DISALLOWED_CLASS_NAMES = ["external-link", "anchor-link", "md-ignore"];

export default function () {
return function (tree: Root) {
Expand Down
2 changes: 1 addition & 1 deletion src/util/markdown.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ export async function htmlToMarkdown(
url: string,
): Promise<string | undefined> {
const dom = parse(html);
const content = dom.querySelector(".sl-markdown-content");
const content = dom.querySelector(".sl-markdown-content:not(.md-ignore)");

if (!content) {
return;
Expand Down