- Add reference links to NotionX type definitions for better documentation
- Comment out debug console.log statement to clean up output
- Maintain existing functionality while improving code clarity
- Add new getFullTextContent function to handle various Notion text formats
- Support equation extraction from decorated text
- Handle special characters like '⁍' and '‣' with proper content resolution
- Process date mentions, link mentions, and other reference types
- Replace getTextContent with getFullTextContent in getTextArray function
- Maintain backward compatibility with existing text processing
- Add getPropertyValue helper function for flexible property retrieval
- Enhance getText function to accept custom keys for property lookup
- Add support for additional block types: image, bookmark, callout, header
- Improve documentation with JSDoc comments for better code understanding
Modify getPageContentText.js to use space delimiter when joining text
blocks instead of empty string. This change affects three functions:
getPageContentText, getTextArray, and getBlockContentText to improve
text readability and proper spacing between concatenated content blocks.
- refactor getText function to process block properties and content
- add support for recursive processing of nested block content
- improve null checks and error handling in block processing
- update getBlockContentText to handle block value safely
The getTextContent function was removed and replaced with an import from
notion-utils, simplifying the text extraction logic for Notion page
content. This change removes the custom recursive implementation and
uses the standardized utility function instead.
- Rename isUrl function to isUrlLikePath for better clarity
- Simplify function logic and add type checking
- Update all references to use the new function name
- Improve function documentation and parameter typing
- Update function name and implementation in utils/index.js
- Replace all occurrences in getPageProperties.js, post.js, and BlogPostCard.js
- Improve function documentation and use regex for better URL matching
- Introduced isMailOrTelLink utility function to validate mailto/tel links.
- Updated getPageProperties to properly handle mailto/tel links with target=_self, preventing unintended conversion to internal links by avoiding the addition of slashes.
Closes#3485
- Add validation for transclusion reference pointer existence
- Return empty string when block is not found
- Prevent potential errors from undefined block references
Change error handling from throwing an exception to logging an error when
Algolia configuration is missing. This provides better error reporting
without breaking the application flow.
- Add global Algolia client and index initialization
- Initialize client once and reuse across functions
- Remove redundant client initialization in individual functions
- Add configuration validation during initialization
- Add `checkDataFromAlgolia` function to identify and delete unused data
- Implement `deletePostDataFromAlgolia` helper function
- Execute Algolia data check during homepage generation
- Handle password-protected and draft pages deletion
- Add `checkDataFromAlgolia` function to identify and delete unused data
- Implement `deletePostDataFromAlgolia` helper function
- Execute Algolia data check during homepage generation
- Handle password-protected and draft pages deletion
Fixes 1526