Skip to content

Commit b9c3601

Browse files
committed
Fix collapsible admonition regex, unused variable, and missing Edit tool
- Fix regex for ??? collapsible admonitions: \\?{3} -> \?{3} - Remove unused `marker` variable in convert_admonitions - Add Edit to allowed-tools in rhivos-fetch-convert skill Co-authored by Claude Code, under the supervision of Alex McLeod
1 parent 9d8ba50 commit b9c3601

2 files changed

Lines changed: 2 additions & 3 deletions

File tree

plugins/rhivos-content/skills/rhivos-fetch-convert/SKILL.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ description: >-
66
admonitions, snippets, figure captions). Use this skill after rhivos-map-upstream
77
has produced an approved upstream-mapping.yaml.
88
argument-hint: "<mapping-yaml> [--sig-docs-path <path>]"
9-
allowed-tools: Read, Write, Bash, Glob, Grep, AskUserQuestion
9+
allowed-tools: Read, Write, Edit, Bash, Glob, Grep, AskUserQuestion
1010
---
1111

1212
# Fetch and Convert Upstream Content

plugins/rhivos-content/skills/rhivos-fetch-convert/scripts/md2adoc.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,10 +50,9 @@ def convert_admonitions(lines: list[str]) -> list[str]:
5050

5151
while i < len(lines):
5252
match = re.match(
53-
r'^(!{3}|\\?{3})\s+([\w]+)(?:\s+"([^"]*)")?\s*$', lines[i]
53+
r'^(!{3}|\?{3})\s+([\w]+)(?:\s+"([^"]*)")?\s*$', lines[i]
5454
)
5555
if match:
56-
marker = match.group(1)
5756
admon_type = match.group(2).lower()
5857
title = match.group(3)
5958
asciidoc_type = admonition_map.get(admon_type, "NOTE")

0 commit comments

Comments
 (0)