github-action-readme-generator 1.12.7 → 1.12.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,3 +1,10 @@
1
+ ## [1.12.8](https://github.com/bitflight-devops/github-action-readme-generator/compare/v1.12.7...v1.12.8) (2026-08-17)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * **integration:** validate every generated section ([#674](https://github.com/bitflight-devops/github-action-readme-generator/issues/674)) ([145adf2](https://github.com/bitflight-devops/github-action-readme-generator/commit/145adf23d424efc4f7d2ff8560e58c22d4ed78c3))
7
+
1
8
  ## [1.12.7](https://github.com/bitflight-devops/github-action-readme-generator/compare/v1.12.6...v1.12.7) (2026-08-15)
2
9
 
3
10
 
package/README.md CHANGED
@@ -267,7 +267,7 @@ value replaced by `***REDACTED***`. Keys whose names look sensitive (`auth`,
267
267
  <!-- start usage -->
268
268
 
269
269
  ```yaml
270
- - uses: bitflight-devops/github-action-readme-generator@v1.12.6
270
+ - uses: bitflight-devops/github-action-readme-generator@v1.12.7
271
271
  with:
272
272
  # Description: The absolute or relative path to the `action.yml` file to read in
273
273
  # from.
package/dist/bin/index.js CHANGED
@@ -216848,13 +216848,18 @@ function headerToAnchor(text) {
216848
216848
  function extractHeaders(content) {
216849
216849
  const headers = [];
216850
216850
  const lines = content.split("\n");
216851
- let inCodeBlock = false;
216851
+ let codeFence;
216852
216852
  for (const line of lines) {
216853
- if (line.trim().startsWith("```")) {
216854
- inCodeBlock = !inCodeBlock;
216853
+ const fenceMatch = /^\s*(`{3,}|~{3,})/.exec(line);
216854
+ if (codeFence) {
216855
+ const fenceCharacter = codeFence[0];
216856
+ if (new RegExp(`^\\s*${fenceCharacter}{${codeFence.length},}\\s*$`).test(line)) codeFence = void 0;
216857
+ continue;
216858
+ }
216859
+ if (fenceMatch) {
216860
+ codeFence = fenceMatch[1];
216855
216861
  continue;
216856
216862
  }
216857
- if (inCodeBlock) continue;
216858
216863
  const headerMatch = /^(#{2,6})\s+(.+)$/.exec(line);
216859
216864
  if (headerMatch) {
216860
216865
  const level = headerMatch[1].length;
package/dist/mjs/index.js CHANGED
@@ -1953,13 +1953,18 @@ function headerToAnchor(text) {
1953
1953
  function extractHeaders(content) {
1954
1954
  const headers = [];
1955
1955
  const lines = content.split("\n");
1956
- let inCodeBlock = false;
1956
+ let codeFence;
1957
1957
  for (const line of lines) {
1958
- if (line.trim().startsWith("```")) {
1959
- inCodeBlock = !inCodeBlock;
1958
+ const fenceMatch = /^\s*(`{3,}|~{3,})/.exec(line);
1959
+ if (codeFence) {
1960
+ const fenceCharacter = codeFence[0];
1961
+ if (new RegExp(`^\\s*${fenceCharacter}{${codeFence.length},}\\s*$`).test(line)) codeFence = void 0;
1962
+ continue;
1963
+ }
1964
+ if (fenceMatch) {
1965
+ codeFence = fenceMatch[1];
1960
1966
  continue;
1961
1967
  }
1962
- if (inCodeBlock) continue;
1963
1968
  const headerMatch = /^(#{2,6})\s+(.+)$/.exec(line);
1964
1969
  if (headerMatch) {
1965
1970
  const level = headerMatch[1].length;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "github-action-readme-generator",
3
3
  "displayName": "bitflight-devops/github-action-readme-generator",
4
- "version": "1.12.7",
4
+ "version": "1.12.8",
5
5
  "description": "The docs generator for GitHub Actions. Auto-syncs action.yml to README.md with 8 sections: inputs, outputs, usage, badges, branding & more. Works as CLI or GitHub Action.",
6
6
  "keywords": [
7
7
  "github-actions",