n8n-nodes-notion-advanced 1.2.26-beta → 1.2.27-beta

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.
@@ -879,18 +879,18 @@ class NotionAITool {
879
879
  // Handle special list processors
880
880
  if (node.listProcessor && (node.tagName === 'ul' || node.tagName === 'ol')) {
881
881
  node.listProcessor(innerContent, blocks);
882
- return `__BLOCK_${placeholderCounter.value++}__`;
882
+ return ''; // Remove completely - no placeholder needed
883
883
  }
884
884
  // Use blockCreator to create the block
885
885
  const block = node.processor(...node.groups);
886
886
  if (block) {
887
887
  blocks.push(block);
888
888
  }
889
- return `__BLOCK_${placeholderCounter.value++}__`;
889
+ return ''; // Remove completely - no placeholder needed
890
890
  }
891
891
  catch (error) {
892
892
  console.warn(`Error processing XML node ${node.tagName}:`, error);
893
- return node.match; // Return original if processing fails
893
+ return ''; // Remove even on error to prevent artifacts
894
894
  }
895
895
  };
896
896
  // Process all root nodes
@@ -1203,9 +1203,7 @@ class NotionAITool {
1203
1203
  const replacements = NotionAITool.processXMLTreeDepthFirst(xmlTree, blocks, counterRef);
1204
1204
  // Step 3: Apply hierarchical replacements to content
1205
1205
  processedContent = NotionAITool.applyHierarchicalReplacements(processedContent, xmlTree, replacements);
1206
- // Step 4: Immediately replace all placeholders with empty strings since blocks are already in blocks array
1207
- processedContent = NotionAITool.cleanupAllPlaceholders(processedContent);
1208
- // Step 5: Clean up any remaining HTML tags
1206
+ // Step 4: Clean up any remaining HTML tags
1209
1207
  processedContent = NotionAITool.cleanupRemainingHtml(processedContent);
1210
1208
  if (DEBUG_ORDERING) {
1211
1209
  console.log(`Processed ${xmlTree.length} root XML nodes hierarchically, created ${blocks.length} blocks`);
@@ -1229,11 +1227,11 @@ class NotionAITool {
1229
1227
  if (block) {
1230
1228
  blocks.push(block);
1231
1229
  }
1232
- return `__BLOCK_${placeholderCounter++}__`;
1230
+ return ''; // Remove completely - no placeholder needed
1233
1231
  }
1234
1232
  catch (error) {
1235
1233
  console.warn('Error in fallback processor:', error);
1236
- return match;
1234
+ return ''; // Remove even on error
1237
1235
  }
1238
1236
  },
1239
1237
  groups: match.slice(1)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "n8n-nodes-notion-advanced",
3
- "version": "1.2.26-beta",
3
+ "version": "1.2.27-beta",
4
4
  "description": "Advanced n8n Notion nodes: Full-featured workflow node + AI Agent Tool for intelligent Notion automation with 25+ block types (BETA)",
5
5
  "scripts": {},
6
6
  "files": [