Commit ff70361
committed
Use canonical path and DataModel::from_markdown
Resolve the input path with std::fs::canonicalize and pass the canonical Path to DataModel::from_markdown instead of reading the file into a string and calling from_markdown_string. This normalizes the path and delegates file parsing to DataModel, avoiding an extra read_to_string here.1 parent 6590ab4 commit ff70361
1 file changed
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
186 | 186 | | |
187 | 187 | | |
188 | 188 | | |
189 | | - | |
190 | | - | |
| 189 | + | |
| 190 | + | |
191 | 191 | | |
192 | 192 | | |
193 | 193 | | |
| |||
0 commit comments