INNER CODE UNIT · Python

run

sangrokjung/claude-forge · scripts/md-to-docx/convert.py:506

            run = paragraph.add_run(part[1:-1])
            run.font.name = FONT_FAMILY_CODE
            run.font.size = Pt(8.5)
            run.font.color.rgb = PRIMARY
        else:
            run = paragraph.add_run(part)
            set_korean_font(run, FONT_FAMILY)
            run.font.size = Pt(9.5)
            run.font.color.rgb = TEXT_COLOR


# ──────────────────────────────────────────────
# Inline Formatting
# ──────────────────────────────────────────────

def process_inline_formatting(paragraph, text: str, font_size=Pt(10.5)):
    """인라인 서식 처리 (굵은 글씨, 코드, 링크)"""
    pattern = r'(\*\*[^*]+\*\*|`[^`]+`|\[[^\]]+\]\([^)]+\))'

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…