this repo has no description
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

Add underline to text groups; reduce styling rates to 25%

_styled() now accepts underline param, rendering as #underline[...] wrapping
any bold/italic markup. Bold, italic, and underline are each applied
independently at 25% (down from 30% for bold/italic).

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>

+11 -6
+11 -6
src/generate_mixed.py
··· 107 107 108 108 # ── Markup helpers ──────────────────────────────────────────────────────────── 109 109 110 - def _styled(text: str, bold: bool, italic: bool) -> str: 110 + def _styled(text: str, bold: bool, italic: bool, underline: bool) -> str: 111 111 if bold and italic: 112 - return f"*_{text}_*" 112 + inner = f"*_{text}_*" 113 113 elif bold: 114 - return f"*{text}*" 114 + inner = f"*{text}*" 115 115 elif italic: 116 - return f"_{text}_" 117 - return text 116 + inner = f"_{text}_" 117 + else: 118 + inner = text 119 + if underline: 120 + return f"#underline[{inner}]" 121 + return inner 118 122 119 123 120 124 def _text_group( ··· 137 141 if not text: 138 142 text = rng.choice(_WORDS) 139 143 140 - return _styled(text, bold=rng.random() < 0.3, italic=rng.random() < 0.3) 144 + return _styled(text, bold=rng.random() < 0.25, italic=rng.random() < 0.25, 145 + underline=rng.random() < 0.25) 141 146 142 147 143 148 # ── Sequence grammar ──────────────────────────────────────────────────────────