Commit 75759aa
committed
fix: use 'Solution' instead of 'Solution to' when exercise_style is set
When exercise_style='solution_follow_exercise', the solution title
should be just 'Solution' not 'Solution to'. This fix updates the
directive to use the correct default title text based on the config.
- Update SolutionDirective to check exercise_style config
- Set title_text to 'Solution' when config is set
- Keep 'Solution to' for default behavior
- Update tests to expect correct 'Solution' title1 parent 669fac3 commit 75759aa
2 files changed
Lines changed: 9 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
222 | 222 | | |
223 | 223 | | |
224 | 224 | | |
225 | | - | |
| 225 | + | |
| 226 | + | |
| 227 | + | |
| 228 | + | |
| 229 | + | |
226 | 230 | | |
227 | 231 | | |
228 | 232 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
38 | 38 | | |
39 | 39 | | |
40 | 40 | | |
41 | | - | |
42 | | - | |
| 41 | + | |
| 42 | + | |
43 | 43 | | |
44 | 44 | | |
45 | 45 | | |
| |||
97 | 97 | | |
98 | 98 | | |
99 | 99 | | |
100 | | - | |
101 | | - | |
| 100 | + | |
| 101 | + | |
0 commit comments