Skip to content

Update workflow.html#35

Merged
tynab merged 1 commit into
mainfrom
develop
Jun 4, 2026
Merged

Update workflow.html#35
tynab merged 1 commit into
mainfrom
develop

Conversation

@tynab

@tynab tynab commented Jun 4, 2026

Copy link
Copy Markdown
Owner

No description provided.

Copilot AI review requested due to automatic review settings June 4, 2026 14:51
@tynab tynab merged commit 0f18285 into main Jun 4, 2026
1 check passed

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR updates the Workflow UI’s markdown rendering (in workflow.html) to improve readability and layout for code blocks, wide tables, and plain-text ASCII diagrams generated in step outputs.

Changes:

  • Adjusts .md pre / code block styling with an explicit monospace font stack and tighter line metrics for diagram alignment.
  • Adds a scrollable wrapper (.table-wrap) + scrollbar styling to prevent wide markdown tables from overflowing.
  • Adds client-side heuristics to convert likely ASCII diagrams that appear in paragraphs into <pre> blocks.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment on lines +990 to +996
// Decode a paragraph's innerHTML to plain text, converting <br> → '\n'
function innerText(el) {
return el.innerHTML
.replace(/<br\s*\/?>/gi, '\n')
.replace(/&lt;/g, '<').replace(/&gt;/g, '>').replace(/&amp;/g, '&')
.replace(/<[^>]+>/g, '');
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants