* feat: optimize code highlighting for diff language
* refactor: update codeblock configuration and enhance code wrapper functionality
* fix: extra blank lines would appear when copying lines containing code highlighting
* refactor: enhance code block wrapper functionality and add new styles (mac style)
* refactor: enhance code block normal mode
* feat: do noting for code block simple mode
* feat: add copy btn for code block modes mac and simple
* refactor: add code-related variables and update styles for code blocks and gist layout
* feat: update code copy button visibility on hover for larger screens
* feat: update code block mode attribute and remove mac wrapper
* feat!: code block parameters accurate to a single
Remove the `data-open` attribute and use `.open` instead.
* refactor: enhance initCopyCode method to accept optional button parameter
* feat: improve code/diagram copy button styles and transitions for better visibility
* fix: disable copy buttons for simple/mac mode code blocks when copyable set to false
* chore: rename normal partial to code-header
* feat: add preview and expand feature for code blocks (close#312)
* fix: adjust transition timing for code header and fade-out animation
* test: update code block test case
* docs: update comments for code highlight and markup configurations
* feat: adjust code header background color darkening for light and dark themes
* fix: hide aside and breadcrumb pseudo-elements on small screens
* perf: change the code copy button and code expand button to server-side rendering
* fix: the code expand button obscured the code content
* fix: update code background and header colors for improved visibility
* fix: ensure code copy button is only added for copyable code blocks
* feat(code block): add lineNosToggler and lineWrapToggler params and feature for code blocks
* refactor: code syntax highlighting styles
* fix: update background color for line numbers and ensure proper sticky effect
* feat(code block): add support for code file names in code blocks
* fix: code review for PR #665
* feat(i18n): add Japanese and Korean translations; update toggle options in multiple languages
* docs: update configurations and comments
* feat: add toc drawer button
* feat: add TOC dialog functionality and related styles
* feat: change back-to-top button with scroll progress indicator
* feat: update color-scheme handling in theme switcher
* fix: code review for checking mistakes and optimization
* fix: the issue where the TOC was still clickable even when it was hidden.
* Initial plan
* Refactor duplicated code in theme.js
- Extract highlight text logic into _applyHighlightToText helper method
- Extract search UI reset logic into _resetSearchUI helper method
- Extract content initialization logic into _initContentComponents helper method
- Extract encrypted class toggling into _toggleEncryptedClass helper method
- Reduce code duplication in initSearch, initFixItDecryptor, and init methods
Co-authored-by: Lruihao <33419593+Lruihao@users.noreply.github.com>
* Simplify _toggleEncryptedClass with boolean parameter
- Replace fromClass and toClass parameters with a single show boolean
- Hardcode class names 'encrypted-hidden' and 'decrypted-shown' in function body
- More semantic API: true to show decrypted content, false to hide
- Simplifies all 3 call sites with clearer intent
Co-authored-by: Lruihao <33419593+Lruihao@users.noreply.github.com>
* refactor: remove redundant DOMContentLoaded checks in aplayer and mermaid initialization
---------
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: Lruihao <33419593+Lruihao@users.noreply.github.com>
Co-authored-by: Cell <1024@lruihao.cn>
* docs: improve error message clarity for shortcode parent block validation
* feat: add APlayer shortcode and audio support
* feat: support both APlayer and MetingJS
* feat: initialize APlayer when content decrypted
* refactor: update config script handling to support dynamic target paths
* refactor: refactor the output paths of the script and style shortcodes, and add test cases
* fix: remove redundant console log in script-style-test.md and update MathJax and Mermaid plugin configurations in assets.html
* feat: add tabs and tab shortcodes support
Powered by https://github.com/github/tab-container-element
* fix: adjust tab-container styles for improved layout and responsiveness
- [x] Underline Style (Default)
- [x] Pill Style
- [x] Card Style
- [x] Segment Style
* test: add tabs comprehensive test cases
* style: code optimization
* fix: add tabs support in home scope
* docs: add `<tab-container>` element reference to README files
* feat: enhance tab-container with loading mixin and simplify code
* refactor: update variable references to use root prefix in styles
* docs: add tabs shortcode support to README files
* fix: ensure shortcode is enclosed within a tabs block
* feat: add responsive design for tab-container on smaller screens
* test: remove unnecessary placement attribute for segment tabs
* refactor: remove unused vertical attribute from tabs shortcode
* fix: set default tab type to 'underline' for consistency
* refactor: update tab-button and tab-panel selectors for improved specificity
* refactor: set watermark config in template, change the default content to author name or site title
* fix: case insensitive for mathjax options param
* chore: fix typo
* chore: use monorepo to manage demo, test and other applications and internal packages
* style: add eslint support and lint code
* chore: refactor project structure and add versioning package replace of fixit-releaser
* chore(deps-dev): replace husky with simple-git-hooks
* Potential fix for code scanning alert no. 13: Shell command built from environment values
* chore(deps-dev): update the final fixit-releaser version
* docs: update contributing guidelines for new structure and commands
---------
Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>