L0 AA Reference Plain-Text Rendering Skill
This skill formalizes handling of L0 markdown lines like:
<span class="kant-aa-ref">AA IV (A-Aufl.), S. 042</span>
Expected Behavior
When format_l0_markdown_to_numbered_html() processes the line, the rendered L0 HTML must show only human-visible text, not literal tags:
- ✅
AA IV (A-Aufl.), S. 042 - ❌
<span class="kant-aa-ref">AA IV (A-Aufl.), S. 042</span>
Canonical Implementation Rule
In blog_kant/revisions/kant-main8-general-remarks/L0-L1-L2/revision_20260410_deploy_main8.php, the kant-aa-ref branch inside format_l0_markdown_to_numbered_html() must:
- Match the line with the
kant-aa-refspan regex. - Extract inner content from capture group
$m[1]. - Strip nested/accidental tags with
wp_strip_all_tags(). - Escape final output with
esc_html(). - Render using
.ltext.kant-page-ref.
Canonical snippet logic:
$aa_ref_text = trim(wp_strip_all_tags($m[1]));$aa_ref_text = esc_html($aa_ref_text);
Registered Enforcement Script
/var/www/html/vania-novikau.me/ai-scripts/deploy/ensure_main8_l0_aa_ref_plain_text.php
The script is idempotent and safely patches only the kant-aa-ref branch in the target deploy file if drift is detected.
Operational Notes
- This skill applies to Main8 L0 markdown processing pipeline.
- Preserve existing line numbering and paragraph flow (
lnum/ltext). - The behavior is considered compliant only when output shows plain reference text without raw HTML tags.