The GitHub Actions job "npm_and_yarn in 
/providers/edge3/src/airflow/providers/edge3/plugins/www for js-yaml - Update 
#1439642329" on airflow.git/main has failed.
Run started by GitHub user dependabot[bot] (triggered by dependabot[bot]).

Head commit for run:
154bfd5b9bf12702cb9e7164d146069fa4e06d0a / Minyeob Kim <[email protected]>
UI: Improve doc_md rendering in Dag Documentation (#66809)

* UI: Improve markdown rendering with code highlighting, math, and diagrams

- Fix inline code rendering to properly handle single backtick snippets
- Add syntax highlighting, line numbers, and copy buttons to code blocks
- Core support for LaTeX math expressions using KaTeX (inline and display)
- Integrate Mermaid.js to render diagrams directly from markdown blocks

* UI: Add horizontal scroll for code blocks and fix container overflow

* Fix markdown code block language parsing for hyphenated identifiers

Co-authored-by: Copilot Autofix powered by AI 
<[email protected]>

* UI: Apply markdown review feedback and fix FAB compat CI

Copilot follow-ups
- Lazy-load Mermaid so markdown rendering only pulls it in when Mermaid blocks 
are rendered
- Reuse existing i18n clipboard labels in markdown block actions instead of 
hard-coded JSX strings
- Replace the Mermaid loading text with a spinner-only state and remove the 
redundant jest-dom test import

Compat 3.0.6 fix
- Pin pyjwt>=2.11.0 in providers/fab so compat installs paired with Airflow 
3.0.6 do not fall back to PyJWT 2.10.1
- Fix flask_jwt_extended imports that expect jwt.types.Options during FAB and 
Google provider test setup
- Keep the FAB wheel metadata aligned with the dependency floor already 
required by current airflow-core

Validation
- Pass targeted eslint, vitest, and UI build checks for the markdown rendering 
changes
- Reproduce the FAB compat install sequence locally and confirm the failing 
import path is restored

* UI: Fix markdown test typing and sync FAB provider docs

- add jest-dom type support for ReactMarkdown tests so UI static checks use the 
current matcher types
- keep the markdown UI files in the formatter output expected by the UI 
lint/type hook
- sync FAB provider docs with the existing pyjwt>=2.11.0 dependency used for 
compat coverage
- use origin/main as the correct baseline for branch-only pre-commit checks

* Remove direct PyJWT dependency from FAB provider

* UI: Restore PrismLight and fix markdown code block framing

- revert the markdown syntax highlighter back to PrismLight with selective 
language registration
- simplify language resolution to only allow explicitly registered languages
- apply the Prism pre styling to the outer code block container
- remove inherited margin and border radius that caused background bleed in the 
documentation modal

* UI: Reduce markdown rendering tests to smoke coverage

- trim ReactMarkdown tests down to a minimal smoke-test set
- keep basic math integration coverage
- keep mermaid render failure fallback coverage
- drop broader layout and highlighting assertions that were not essential to 
preserve

* UI: Drop inline markdown math and lazy-load KaTeX

- disable single-dollar inline math parsing to avoid breaking plain dollar text
- keep display math support for `$$...$$` blocks
- remove the global KaTeX stylesheet import from the app entrypoint
- load KaTeX styles only when markdown content needs math rendering

* docs: Add third-party license notices for markdown deps

- update `airflow-core/LICENSE` for the newly bundled markdown-rendering UI 
dependencies
- add MIT license texts for `katex`, `mermaid`, `rehype-katex`, and 
`remark-math`
- follow the existing `airflow-core/3rd-party-licenses` convention used for 
bundled UI packages

* fix: restore Link component props and align with library contract

- restore Link components required props (href/children) to match main branch
- isolate optional handling to the react-markdown adapter boundary
- handle invalid links by rendering children directly without a Link wrapper

* Update airflow-core/src/airflow/ui/src/components/ReactMarkdownBlocks.tsx

Co-authored-by: Brent Bovenzi <[email protected]>

* Update airflow-core/src/airflow/ui/src/components/ReactMarkdown.tsx

Co-authored-by: Brent Bovenzi <[email protected]>

* UI: Simplify ReactMarkdown code rendering helpers

Rename the inline code renderer for clarity, simplify markdown text extraction,
and remove the one-off mermaid label variable.

* UI: Move markdown Mermaid rendering into provider

* fix: Rename KatexStyleLoader to PascalCase and update imports

* UI: Remove redundant syntax language resolution logic

- Delete unnecessary `resolveSyntaxLanguage` helper from `syntaxHighlighter.ts`
- Simplify code block rendering by passing raw language strings to Prism

* chore: remove pnpm.minimumReleaseAge

* remove extractText & extractTextContent in ReactMarkdown

Co-authored-by: Brent Bovenzi <[email protected]>

* UI: Simplify MermaidProvider by removing redundant hooks and state tracking

- Remove `useCallback`/`useMemo` — `babel-plugin-react-compiler` handles
  memoization automatically via `reactCompilerPreset()`
- Remove `useState`/`useRef`/`useEffect` theme-tracking chain and the
  separate `initializeMermaid` function; `mermaid.initialize()` is called
  directly in `renderDiagram` on every invocation instead

* fix typeof guards in `ReactMarkdown` to resolve no-base-to-string lint error

* restore pnpm minimumReleaseAge setting

* UI: Fix markdown override behavior and Mermaid initialization

* remove 3rd party licenses for markdown rendering

* UI: Move Mermaid markdown rendering from context provider to util

* Docs: Add documentation hints for Markdown rendering support in the tutorial 
Task docs example

* remove example_markdown_doc Dag

* Update airflow-core/src/airflow/ui/src/components/ReactMarkdownBlocks.tsx

Co-authored-by: Pierre Jeambrun <[email protected]>

* UI: Render markdown math from fenced code blocks

Use ```math fenced blocks for KaTeX rendering in the markdown UI instead of
detecting $$ delimiters in raw markdown text.

This keeps fenced block handling in the dedicated block renderer, avoids
ambiguous $$ detection, preserves the existing Mermaid block flow, and updates
the tutorial and docs to describe the supported Markdown syntax accurately.

* docs: Update task_doc_md images

---------

Co-authored-by: Copilot Autofix powered by AI 
<[email protected]>
Co-authored-by: Brent Bovenzi <[email protected]>
Co-authored-by: Pierre Jeambrun <[email protected]>

Report URL: https://github.com/apache/airflow/actions/runs/28387957588

With regards,
GitHub Actions via GitBox


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to