• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar
  • Skip to footer
Jetpack a2z

Jetpack a2z

Jetpack a2z

  • Home
  • Plugins
  • Blocks
  • Shortcodes
  • APIs
  • Classes
  • Files
  • Hooks
  • Sitemap
  • Blog
Home / APIs / Markdown_Parser::hashHTMLBlocks() –

You appear to be a bot. Output may be restricted

Description

Usage

Markdown_Parser::hashHTMLBlocks( $text );

Parameters

$text
( mixed ) required –

Returns

void

Source

File name: jetpack/_inc/lib/markdown/extra.php
Lines:

101 to 139 of 139
            (?=\n+|\Z)  # followed by a newline or end of document

      | # Special case just for <hr />. It was easier to make a special
        # case than to make the other regex more complicated.

            [ ]{0,'.$less_than_tab.'}
            <(hr)        # start tag = $2
            '.$attr.'      # attributes
            /?>					# the matching end tag
						[ ]*
						(?=\n{2,}|\Z)		# followed by a blank line or end of document

			| # Special case for standalone HTML comments:

					[ ]{0,'.$less_than_tab.'}
					(?s:
						<!-- .*? -->
					)
					[ ]*
					(?=\n{2,}|\Z)		# followed by a blank line or end of document

			| # PHP and ASP-style processor instructions (<? and <%)

          [ ]{0,'.$less_than_tab.'}
          (?s:
            <([?%])      # $2
            .*?
            \2>
          )
          [ ]*
          (?=\n{2,}|\Z)    # followed by a blank line or end of document

      )
      )}Sxmi',
			array(&$this, '_hashHTMLBlocks_callback'),
			$text);

		return $text;
	}
 
« Previous [1] [2]

 View on GitHub View on Trac

Share this:

  • Click to share on Twitter (Opens in new window)
  • Click to share on Facebook (Opens in new window)
  • Click to share on LinkedIn (Opens in new window)
  • Click to share on Pinterest (Opens in new window)

Related

Published: 27 November 2019 | Last updated: 27 November 2019

Primary Sidebar

Information

Function name: Markdown_Parser::hashHTMLBlocks
Class ref: Markdown_Parser
Plugin ref: Jetpack
Version: 9.2
Sourcefile: _inc/lib/markdown/extra.php
File ref: _inc/lib/markdown/extra.php
Deprecated?: No
API Letters: H,M,P

Footer

Jetpack a2z
Jetpack a2z
Jetpack a2z
WordPress 5.6
WordPress a2z
WordPress core a2z
Genesis Theme Framework a2z
Jetpack a2z
WordPress develop tests
Easy Digital Downloads a2z
WooCommerce a2z
Yoast SEO a2z
WordPress Blocks

Site:  jetpack.wp-a2z.org
© Copyright Jetpack a2z 2014-2021. All rights reserved.


Website designed and developed by Herb Miller
Proudly powered by WordPress and oik plugins

  • Home
  • Blog
  • Sitemap
  • Sites