lingo.dev 0.87.7 → 0.87.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/build/cli.cjs CHANGED
@@ -3114,8 +3114,8 @@ function ensureTrailingFenceNewline(_content) {
3114
3114
  ${match}
3115
3115
 
3116
3116
  `;
3117
- content = content.replace(match, replacement);
3118
- workingContent = workingContent.replace(match, "");
3117
+ content = content.replaceAll(match, replacement);
3118
+ workingContent = workingContent.replaceAll(match, "");
3119
3119
  found = true;
3120
3120
  }
3121
3121
  } while (found);
@@ -3130,9 +3130,10 @@ function extractCodePlaceholders(content) {
3130
3130
  for (const match of codeBlockMatches) {
3131
3131
  const codeBlock = match[0];
3132
3132
  const codeBlockHash = md5(codeBlock);
3133
- const placeholderId = `---CODE_PLACEHOLDER_${codeBlockHash}---`;
3134
- codePlaceholders[placeholderId] = codeBlock;
3135
- finalContent = finalContent.replace(codeBlock, placeholderId);
3133
+ const placeholder = `---CODE_PLACEHOLDER_${codeBlockHash}---`;
3134
+ codePlaceholders[placeholder] = codeBlock;
3135
+ const replacement = codeBlock.trim().startsWith(">") ? `> ${placeholder}` : `${placeholder}`;
3136
+ finalContent = finalContent.replace(codeBlock, replacement);
3136
3137
  }
3137
3138
  return {
3138
3139
  content: finalContent,
@@ -3151,7 +3152,8 @@ function createMdxCodePlaceholderLoader() {
3151
3152
  for (const [placeholder, original] of Object.entries(
3152
3153
  response.codePlaceholders
3153
3154
  )) {
3154
- result = result.replaceAll(placeholder, original);
3155
+ const replacement = original.startsWith(">") ? _lodash2.default.trimStart(original, "> ") : original;
3156
+ result = result.replaceAll(placeholder, replacement);
3155
3157
  }
3156
3158
  return result;
3157
3159
  }
@@ -5646,7 +5648,7 @@ function validateParams2(i18nConfig, flags) {
5646
5648
  // package.json
5647
5649
  var package_default = {
5648
5650
  name: "lingo.dev",
5649
- version: "0.87.7",
5651
+ version: "0.87.8",
5650
5652
  description: "Lingo.dev CLI",
5651
5653
  private: false,
5652
5654
  publishConfig: {