Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Developer Actions and Filters #766

Open
wants to merge 16 commits into
base: develop
Choose a base branch
from

Commits on Oct 7, 2023

  1. Bumping version.

    ronaldhuereca committed Oct 7, 2023
    Configuration menu
    Copy the full SHA
    5635329 View commit details
    Browse the repository at this point in the history
  2. New Action: syntax_highlighting_code_block_boot - run at plugin boot

    New Action: `syntax_highlighting_code_block_boot`. This action is run post boot after the `plugins_loaded` action has been executed. This is useful for letting others know when the plugin has finished its boot process in order to modify any early actions and filters the plugin uses.
    ronaldhuereca committed Oct 7, 2023
    Configuration menu
    Copy the full SHA
    92f2a9c View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    5c1869b View commit details
    Browse the repository at this point in the history
  4. New Filters: syntax_highlighting_code_block_transient_key and syntax_…

    …highlighting_code_block_injected_markup
    
    New filter: `syntax_highlighting_code_block_transient_key` - This is for filtering the language param that's returned. See: westonruter#191
    New filter: `syntax_highlighting_code_block_injected_markup` - This is for being able to modify the output before its returned. This is to help those who want to extend the markup or introduce their own.
    ronaldhuereca committed Oct 7, 2023
    Configuration menu
    Copy the full SHA
    d1a63ed View commit details
    Browse the repository at this point in the history
  5. New action: syntax_highlighting_code_block_highlighter_init

    New action: `syntax_highlighting_code_block_highlighter_init` - Fires in the `render_block` function after the highlighter has been initialized. Helps fix: westonruter#191
    ronaldhuereca committed Oct 7, 2023
    Configuration menu
    Copy the full SHA
    6fe675e View commit details
    Browse the repository at this point in the history
  6. New filter: syntax_highlighting_code_block_language_names - Change la…

    …nguage names.
    
    Filter: `syntax_highlighting_code_block_language_names` - Resolves issue: westonruter#488
    ronaldhuereca committed Oct 7, 2023
    Configuration menu
    Copy the full SHA
    67a966c View commit details
    Browse the repository at this point in the history
  7. Filter: syntax_highlighting_code_block_injected_markup - added to output

    Filter `syntax_highlighting_code_block_injected_markup` is added to the output for the highlighted portion.
    ronaldhuereca committed Oct 7, 2023
    Configuration menu
    Copy the full SHA
    d4685f8 View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    da32393 View commit details
    Browse the repository at this point in the history
  9. Some code cleanup.

    ronaldhuereca committed Oct 7, 2023
    Configuration menu
    Copy the full SHA
    5907006 View commit details
    Browse the repository at this point in the history
  10. JS Filter: syntaxHighlightingCodeBlockAttributes Set default attributes.

    Filter: `syntaxHighlightingCodeBlockAttributes` allows you to set defaults for the code block.
    ronaldhuereca committed Oct 7, 2023
    Configuration menu
    Copy the full SHA
    cfc638e View commit details
    Browse the repository at this point in the history
  11. New filter: syntax_highlighting_code_block_pre_start_tag

    Filter `syntax_highlighting_code_block_pre_start_tag` is for adding markup to pre tag and honoring block alignment.
    ronaldhuereca committed Oct 7, 2023
    Configuration menu
    Copy the full SHA
    3f0d9ea View commit details
    Browse the repository at this point in the history
  12. Filter: syntax_highlighting_code_block_code_classes Add classes.

    Filter `syntax_highlighting_code_block_code_classes` allows you to add custom classes to the `code` element.
    ronaldhuereca committed Oct 7, 2023
    Configuration menu
    Copy the full SHA
    4d23455 View commit details
    Browse the repository at this point in the history
  13. Some formatting.

    ronaldhuereca committed Oct 7, 2023
    Configuration menu
    Copy the full SHA
    6b9af78 View commit details
    Browse the repository at this point in the history
  14. Removing filter syntax_highlighting_code_block_pre_start_tag

    Remove filter `syntax_highlighting_code_block_pre_start_tag` as pre tag is not designed to have extra markup injected.
    ronaldhuereca committed Oct 7, 2023
    Configuration menu
    Copy the full SHA
    5437aca View commit details
    Browse the repository at this point in the history
  15. Configuration menu
    Copy the full SHA
    0ca30ab View commit details
    Browse the repository at this point in the history
  16. Doc block cleanup.

    ronaldhuereca committed Oct 7, 2023
    Configuration menu
    Copy the full SHA
    ac48a0b View commit details
    Browse the repository at this point in the history