Index: wp-includes/link-template.php
===================================================================
--- wp-includes/link-template.php	(revision 31419)
+++ wp-includes/link-template.php	(working copy)
@@ -2401,6 +2401,16 @@
 		<h2 class="screen-reader-text">%2$s</h2>
 		<div class="nav-links">%3$s</div>
 	</nav>';
+	/**
+	 * Filter the navigation markup template.
+	 *
+	 * @since 4.2.0
+	 *
+	 * @param string $template The default template
+	 * @param string $class The class passed by the calling function.
+	 * @return string Navigation template. 
+	 */
+	apply_filters( 'navigation_markup_template', $template, $class );
 
 	return sprintf( $template, sanitize_html_class( $class ), esc_html( $screen_reader_text ), $links );
 }
