Skip to content
Open
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
7 changes: 5 additions & 2 deletions src/parser/remark-containers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -177,8 +177,11 @@ export const remarkWiremdContainers: Plugin = () => {
for (const line of lines) {
const trimmed = line.trim();
if (trimmed === ':::') {
foundClosing = true;
break;
nestingLevel--;
if (nestingLevel === 0) {
foundClosing = true;
break;
}
} else if (trimmed.startsWith(':::')) {
// Check if this is a new container start (has content after :::)
const afterMarker = trimmed.substring(3).trim();
Expand Down