(settings: HTMLSettings)
| 684 | }; |
| 685 | |
| 686 | export const htmlCodeGenTextStyles = (settings: HTMLSettings) => { |
| 687 | const result = previousExecutionCache |
| 688 | .map( |
| 689 | (style) => |
| 690 | `// ${style.text}\n${style.style.split(settings.htmlGenerationMode === "jsx" ? "," : ";").join(";\n")}`, |
| 691 | ) |
| 692 | .join("\n---\n"); |
| 693 | |
| 694 | if (!result) { |
| 695 | return "// No text styles in this selection"; |
| 696 | } |
| 697 | return result; |
| 698 | }; |