UNPKG

markdown-it-smiles

Version:

A markdown-it plugin for rendering SMILES (Simplified Molecular Input Line Entry System) chemical structures

55 lines (40 loc) โ€ข 1.47 kB
# Changelog All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). ## [1.0.0] - 2025-05-29 ### Added - Initial release of markdown-it-smiles plugin - Block-level SMILES rendering with ````smiles` syntax - Inline SMILES rendering with `$smiles{...}` syntax - Configurable rendering options (width, height, bond thickness, etc.) - Automatic inclusion of required CSS styles and JavaScript - Support for custom smilesDrawer options - Responsive design with mobile support - Error handling for invalid SMILES strings - Browser and Node.js compatibility - Comprehensive test suite - Complete documentation and examples ### Features - ๐Ÿงช Block-level SMILES rendering with customizable options - ๐Ÿ”ฌ Inline SMILES rendering for seamless text integration - โš™๏ธ JSON-based configuration for rendering options - ๐ŸŽจ Responsive canvas-based rendering - ๐Ÿš€ High performance with lazy loading - ๐Ÿ“ฑ Cross-platform compatibility - ๐Ÿ›ก๏ธ Error handling and validation - ๐ŸŽฏ TypeScript-friendly (implicit) ### Dependencies - markdown-it >= 8.0.0 - smiles-drawer ^2.1.7 ### Browser Support - Chrome 60+ - Firefox 55+ - Safari 12+ - Edge 79+ ## [Unreleased] ### Planned - SVG/PNG rendering support - Dark theme support - Additional atom visualization modes - TypeScript definitions