(content: string)
| 20 | // Inline parsing is pure: drive it directly with a string so the many edge |
| 21 | // cases read clearly. |
| 22 | const parseInline = (content: string): Array<{key: string, content: unknown}> => |
| 23 | new MetaEditParser({} as any) |
| 24 | .parseInlineContent(content) |
| 25 | .map(({key, content: value}) => ({key, content: value})); |
| 26 | |
| 27 | const replaceInline = (line: string, key: string, value: string): string => |
| 28 | new MetaEditParser({} as any).replaceInlineFieldValue(line, key, value); |
no test coverage detected