Input Code
Console Output
// This is a reference implementation for the proposal. // The dedent method will be used to perform the dedenting. import dedent from "https://unpkg.com/string-dedent/dist/dedent.mjs"; String.dedent = dedent; const exp = "Expressions"; // As a convenience, two log methods are provided. // 1. `log`, which outputs without making whitespace visible // 2. `visilog`, which will replace leading spaces with middots and tabs with dashes. visilog(String.dedent` This line will appear without any indentation. * This list will appear with 2 spaces more than previous line. * As will this line. Empty lines (like the one above) will not affect the common indentation. ${exp} are supported, and the opening \`\${\` is considered the end of any indentation on the line. `);