Skip to content

Commit f51c0c1

Browse files
authored
Merge pull request #367 from ma10/yaml2sheet-derest-checktext-20250630
Appropriately process reST in the check text.
2 parents 4c5e3a3 + e11d82b commit f51c0c1

File tree

2 files changed

+11
-1
lines changed

2 files changed

+11
-1
lines changed

tools/lib/freee_a11y_gl/pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
44

55
[project]
66
name = "freee_a11y_gl"
7-
version = "0.1.3"
7+
version = "0.1.4"
88
description = "A module to process a11y guidelines data"
99
authors = [
1010
{name = "Masafumi NAKANE", email = "[email protected]"}

tools/lib/freee_a11y_gl/src/freee_a11y_gl/yaml_processor/process_yaml.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,16 @@ def process_yaml_data(basedir: Optional[str] = None) -> Dict[str, Any]:
4040
# Process checks and their conditions
4141
checks: Dict[str, Any] = Check.object_data_all()
4242
for key in checks:
43+
# Process check text for RST markup
44+
if 'check' in checks[key]:
45+
for lang in checks[key]['check']:
46+
checks[key]['check'][lang] = rst_processor.process_rst_text(
47+
checks[key]['check'][lang],
48+
info_links,
49+
lang
50+
)
51+
52+
# Process conditions for RST markup
4353
if 'conditions' in checks[key]:
4454
checks[key]['conditions'] = [
4555
rst_processor.process_rst_condition(condition, info_links)

0 commit comments

Comments
 (0)