(rawValue)
| 48 | } |
| 49 | |
| 50 | function parseBlockScalarHeader(rawValue) { |
| 51 | const value = rawValue.trim(); |
| 52 | if (!value) { |
| 53 | return null; |
| 54 | } |
| 55 | if (!value.startsWith(">") && !value.startsWith("|")) { |
| 56 | return null; |
| 57 | } |
| 58 | return { |
| 59 | style: value[0], |
| 60 | }; |
| 61 | } |
| 62 | |
| 63 | function foldBlockScalarLines(lines) { |
| 64 | let result = ""; |