We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 56220a9 commit e23337fCopy full SHA for e23337f
src/run_snippet.ts
@@ -121,7 +121,7 @@ class FinalizedContent {
121
template = template.replace(/^\ *\$snippet/m, '$snippet');
122
123
// insert indentation
124
- const indent = ' '.repeat(indentMatch[1].length);
+ const indent = indentMatch[1];
125
const splitted_rawSnippet = content.rawSnippet.split('\n');
126
const indentedSnippet = splitted_rawSnippet.map((line) => {
127
return indent + line;
@@ -154,7 +154,7 @@ class Content {
154
}
155
156
// indent
157
158
159
// remove markers
160
selectedText = selectedText.replace(/^```/, '').replace(/```$/, '');
0 commit comments