Changeset 7989
- Timestamp:
- 12/19/2018 06:17:14 AM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/wordpress.org/public_html/wp-content/themes/pub/gutenberg/inc/docs-importer.php
r7927 r7989 284 284 $markdown = preg_replace( '/(\[.*?\])\((\.\.\/)+docs\/(.*?)\/?(#.*)?\)/i', '$1(https://wordpress.org/gutenberg/handbook/$3/$4)', $markdown ); 285 285 286 // Handle /docs/(.+)(/README.md) path for internal links and replace it with an absolute URL 287 $markdown = preg_replace( '@(\[.*?\])\(/docs/(.*?)/?(#.*)?\)@i', '$1(https://wordpress.org/gutenberg/handbook/$2/$3)', $markdown ); 288 289 // Handle /packages/compomnents(/README.md) 290 $markdown = preg_replace( '@(\[.*?\])\(/packages/components/?(#.*)?\)@i', '$1(https://wordpress.org/gutenberg/handbook/designers-developers/developers/components/$2)', $markdown ); 291 292 // Handle /packages/components/(.+)(/README.md) 293 $markdown = preg_replace( '@(\[.*?\])\(/packages/components/(.*?)/?(#.*)?\)@i', '$1(https://wordpress.org/gutenberg/handbook/designers-developers/developers/components/$2/$3)', $markdown ); 294 295 // Handle /packages/(.+)(/README.md) 296 $markdown = preg_replace( '@(\[.*?\])\(/packages/(.*?)/?(#.*)?\)@i', '$1(https://wordpress.org/gutenberg/handbook/designers-developers/developers/packages/packages-$2/$3)', $markdown ); 297 286 298 // Transform to HTML 287 299 jetpack_require_lib( 'markdown' );
Note: See TracChangeset
for help on using the changeset viewer.