Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Update Handbook_Command.php
  • Loading branch information
karan241296 authored Oct 6, 2026
commit 9f3e9a937f1c4c15f862fd7c9a4ca81636878f3b
6 changes: 3 additions & 3 deletions bin/Handbook_Command.php
Original file line number Diff line number Diff line change
Expand Up @@ -619,19 +619,19 @@ private static function gen_cmd_pages( $cmd, $parent = [], $verbose = false ) {
// Match words, '().,;', and --arg before/after the newline.
$bits = explode( "\n", $docs );
$in_yaml_doc = false;
$in_code_block = false;
$in_code_bloc = false;
$total_bits = count( $bits );
for ( $i = 0; $i < $total_bits; $i++ ) {
if ( ! isset( $bits[ $i ] ) || ! isset( $bits[ $i + 1 ] ) ) {
continue;
}
if ( '---' === $bits[ $i ] || '\---' === $bits[ $i ] ) {
$in_code_block = ! $in_code_block;
$in_yaml_doc = ! $in_yaml_doc;
}
if ( '```' === $bits[ $i ] ) {
$in_code_bloc = ! $in_code_bloc;
}
if ( $in_code_block || $in_code_bloc ) {
if ( $in_yaml_doc || $in_code_bloc ) {
continue;
}

Expand Down
Loading