You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 39f7263
Browse filesBrowse the repository at this point in the historyBrowse files
@@ -646,9 +647,10 @@ Or configure per-file patterns:
646
647
"docs/**/*.md" = "mkdocs"
647
648
"**/*.mdx" = "mdx"
648
649
"**/*.qmd" = "quarto"
650
+
".github/workflows/**/*.md" = "gh-aw"
649
651
```
650
652
651
-
When no flavor is configured, rumdl auto-detects from the file name: `.mdx`→ mdx, `.qmd`/`.Rmd` → quarto, `.md` → standard.
653
+
When no flavor is configured, rumdl auto-detects from the file name: `.mdx`→ mdx, `.qmd`/`.Rmd` → quarto, `.kramdown` → kramdown, and `.md` → standard.
652
654
A name ending in `.feature.md` matches that compound suffix before the plain `.md` rule, so those files are linted as mdg.
653
655
654
656
For complete flavor documentation, see the [Flavors Guide](docs/flavors.md).
-**[Hugo](flavors/hugo.md)** - Goldmark Markdown attributes (`{class="a" id="b"}`) attached to tables, headings, and code blocks
83
85
-**[Markdown with Gherkin](flavors/mdg.md)** - Structure headings, tag lines, Doc String fences, and indented Gherkin tables kept in the form Gherkin accepts
86
+
-**[GitHub Agentic Workflows](flavors/gh-aw.md)** - Frontmatter templates, runtime imports, and conditional control lines preserved safely (preview)
Both `{{/if}}` and `{{#endif}}` close a conditional. Current gh-aw runtimes
59
+
also accept the listed `elseif` spellings and the `#else`/`else` fallback
60
+
forms. `runtime-import?` is the optional import form. The older `import` helper remains
61
+
recognized so lint fixes do not corrupt workflows that have not yet migrated to
62
+
`runtime-import`.
63
+
64
+
Recognition is deliberately exact. A directive name embedded in prose,
65
+
unsupported helpers, malformed directives, and GitHub Actions expressions such
66
+
as `${{ github.ref }}` remain ordinary Markdown and are linted normally.
67
+
68
+
## Rule adjustments
69
+
70
+
| Rule |`gh-aw` behavior |
71
+
| ---- | ---------------- |
72
+
|[MD034](../md034.md)| Does not report or rewrite URLs and email-like text on a recognized control line. Body prose is still checked. |
73
+
|[MD041](../md041.md)| Skips leading control lines when finding the first content heading. A fix can relevel a heading in place but never moves it across a control boundary. |
74
+
|[MD057](../md057.md)| Markdown-looking YAML strings are not treated as body links, and output placeholders such as `{run_url}` are not filesystem paths. Broken body links are still reported. Explicit `check-frontmatter` validation remains available for standalone path-shaped values. |
75
+
76
+
Paragraph reflow already treats standalone template directives as structural
77
+
boundaries. The flavor's regression corpus verifies that formatting leaves all
78
+
recognized control lines byte-for-byte unchanged and converges in one pass.
79
+
80
+
## Scope
81
+
82
+
The flavor makes Markdown linting and formatting safe around gh-aw syntax. It
83
+
does not validate workflow frontmatter schemas, evaluate conditionals, resolve
84
+
imports, or compile workflows. Use the gh-aw tooling for those operations.
-`"myst"`: MyST/Jupyter Book directives, roles, math, and comments
921
+
-`"hugo"`: Hugo/Goldmark block attribute lists
917
922
-`"mdg"`: Markdown with Gherkin — steers headings, Doc String fences, and Gherkin tables toward the one spelling Gherkin accepts, and withholds corrections that are not safe
**Aliases**: `"commonmark"` is an alias for `"standard"`, `"github"` for `"gfm"`, `"azure"` and `"ado"` for `"azure_devops"`, and `"markdown_with_gherkin"` for `"mdg"`
925
+
**Aliases**: `"gfm"`, `"commonmark"`, and `"github"` map to `"standard"`; `"qmd"`, `"rmd"`, and `"rmarkdown"` map to `"quarto"`; `"jekyll"` maps to `"kramdown"`; `"azure"` and `"ado"` map to
926
+
`"azure_devops"`; `"mystmd"` maps to `"myst"`; `"goldmark"` maps to `"hugo"`; and `"markdown_with_gherkin"` maps to `"mdg"`
- Use `quarto` for scientific documents with R/Python code execution
935
942
- Use `azure_devops` (or `azure` / `ado`) for Azure DevOps wiki content with `:::mermaid` blocks
936
943
- Use `mdg` (or `markdown_with_gherkin`) for Markdown with Gherkin; files whose name ends in `.feature.md` are detected automatically
944
+
- Use `gh-aw` for GitHub Agentic Workflow sources; ordinary `.md` files are not auto-detected, so prefer a `.github/workflows/**/*.md` per-file mapping
937
945
938
946
**Example CLI usage**:
939
947
@@ -956,6 +964,7 @@ Specifies Markdown flavors for specific files or file patterns. This allows diff
956
964
"**/*.mdx" = "mdx"
957
965
"**/*.qmd" = "quarto"
958
966
"examples/**/*.md" = "standard"
967
+
".github/workflows/**/*.md" = "gh-aw"
959
968
```
960
969
961
970
**Available Flavors**:
@@ -965,8 +974,15 @@ Specifies Markdown flavors for specific files or file patterns. This allows diff
0 commit comments