Releases: WSHAPER/code-block-file-export
Releases · WSHAPER/code-block-file-export
Release list
Code Block File Export v1.0.1
Code Block File Export v1.0.1
This maintenance release focuses on security improvements and code quality enhancements, specifically addressing issues identified by the Obsidian community plugin security scan.
Security Improvements
- Replaced usage of innerHTML with proper DOM API methods (document.createElementNS) for SVG creation
- Enhanced security by eliminating potential injection vulnerabilities
Code Quality Enhancements
- Removed all "any" type casts in favor of more specific TypeScript types
- Improved type safety throughout the codebase
- Added proper error type handling
Behind the Scenes
- Updated test files to use proper TypeScript types
- Added comprehensive PluginManifest objects in test setup
- Fixed build and compilation issues in test environment
- Aligned code with Obsidian's plugin development best practices
Release Assets
- main.js
- manifest.json
- styles.css
Compatible with Obsidian 0.15.0 and above.
Code Block File Export v1.0.0
Code Block File Export v1.0.0
Initial release of the Code Block File Export plugin for Obsidian.
Features
- Adds an export button to code blocks in Obsidian notes
- Detects code language automatically from syntax highlighting
- Maps common language identifiers to appropriate file extensions
- Uses browser download functionality for simple file saving
- Generates smart filenames based on code content
- Supports custom language mappings through settings
Settings
- Default file extension: Set the fallback extension when language can't be detected
- Custom language mappings: Define your own language-to-extension mappings using JSON
Release Assets
- main.js
- manifest.json
- styles.css
Compatible with Obsidian 0.15.0 and above.