Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
linjialiang committed Dec 27, 2023
1 parent d51d308 commit 0fcc59d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/PhpDoc.php
Original file line number Diff line number Diff line change
Expand Up @@ -126,12 +126,12 @@ private function handleElement(string $savePath, bool $isConst = false): void
$html = str_replace('*/', '', $html); // */ 不转义会导致phpstorm文档报错
// 移除首个标签
if ($isConst) $html = preg_replace(['/^<(td|dd|dt)>/', '/<\/(td|dd|dt)>$/'], '', $html);
/*// 将 code 和 pre 修改成 code1 和 pre1
// 将 code 和 pre 修改成 code1 和 pre1
$html = preg_replace(
['#<code>#', '#<code #', '#</code>#', '#<pre>#', '#<pre #', '#</pre>#'],
['<code1>', '<code1 ', '</code1>', '<pre1>', '<pre1 ', '</pre1>'],
$html
);*/
);
// 文件保存到指定目录
$this->save_file($savePath, $html);
}
Expand Down

0 comments on commit 0fcc59d

Please sign in to comment.