[GH-ISSUE #15599] issue: Markdown Table Alignment Conversion Bug #33142

Closed
opened 2026-04-25 07:02:57 -05:00 by GiteaMirror · 1 comment
Owner

Originally created by @wongsatornt2529 on GitHub (Jul 9, 2025).
Original GitHub issue: https://github.com/open-webui/open-webui/issues/15599

Check Existing Issues

  • I have searched the existing issues and discussions.
  • I am using the latest version of Open WebUI.

Installation Method

Git Clone

Open WebUI Version

0.6.15

Ollama Version (if applicable)

No response

Operating System

Ubuntu 22.04

Browser (if applicable)

No response

Confirmation

  • I have read and followed all instructions in README.md.
  • I am using the latest version of both Open WebUI and Ollama.
  • I have included the browser console logs.
  • I have included the Docker container logs.
  • I have provided every relevant configuration, setting, and environment variable used in my setup.
  • I have clearly listed every relevant configuration, custom setting, environment variable, and command-line option that influences my setup (such as Docker Compose overrides, .env values, browser settings, authentication configurations, etc).
  • I have documented step-by-step reproduction instructions that are precise, sequential, and leave nothing to interpretation. My steps:
  • Start with the initial platform/version/OS and dependencies used,
  • Specify exact install/launch/configure commands,
  • List URLs visited, user input (incl. example values/emails/passwords if needed),
  • Describe all options and toggles enabled or changed,
  • Include any files or environmental changes,
  • Identify the expected and actual result at each stage,
  • Ensure any reasonably skilled user can follow and hit the same issue.

Expected Behavior

YEAR NUM1 NUM2 NUM3
2025 1,000 20 6

Actual Behavior

I recently discovered a minor issue in the markdown converter related to table rendering—it appears to skip the alignment, as shown below.

| YEAR | NUM1 | NUM2 | NUM3 |
| :--- | ---: | ---: | ---: |
| 2025 | 1,000 | 20 | 6 |
YEAR NUM1 NUM2 NUM3
2025 1,000 20 6

Steps to Reproduce

Create a Markdown table with alignment syntax:

Header 1 Header 2
Center Right
Convert the Markdown using the converter.

Inspect the resulting HTML output.

Logs & Screenshots

The issue might from below {token.align[headerIdx] ? '' : text-align: ${token.align[headerIdx]}}.
I'm not sure if this change is too minor to warrant a pull request, so I’d appreciate it if you could help update the code directly. Thank you!

Image Image

Additional Information

No response

Originally created by @wongsatornt2529 on GitHub (Jul 9, 2025). Original GitHub issue: https://github.com/open-webui/open-webui/issues/15599 ### Check Existing Issues - [x] I have searched the existing issues and discussions. - [x] I am using the latest version of Open WebUI. ### Installation Method Git Clone ### Open WebUI Version 0.6.15 ### Ollama Version (if applicable) _No response_ ### Operating System Ubuntu 22.04 ### Browser (if applicable) _No response_ ### Confirmation - [x] I have read and followed all instructions in `README.md`. - [x] I am using the latest version of **both** Open WebUI and Ollama. - [x] I have included the browser console logs. - [x] I have included the Docker container logs. - [x] I have **provided every relevant configuration, setting, and environment variable used in my setup.** - [x] I have clearly **listed every relevant configuration, custom setting, environment variable, and command-line option that influences my setup** (such as Docker Compose overrides, .env values, browser settings, authentication configurations, etc). - [x] I have documented **step-by-step reproduction instructions that are precise, sequential, and leave nothing to interpretation**. My steps: - Start with the initial platform/version/OS and dependencies used, - Specify exact install/launch/configure commands, - List URLs visited, user input (incl. example values/emails/passwords if needed), - Describe all options and toggles enabled or changed, - Include any files or environmental changes, - Identify the expected and actual result at each stage, - Ensure any reasonably skilled user can follow and hit the same issue. ### Expected Behavior | YEAR | NUM1 | NUM2 | NUM3 | | :--- | ---: | ---: | ---: | | 2025 | 1,000 | 20 | 6 | ### Actual Behavior I recently discovered a minor issue in the markdown converter related to table rendering—it appears to skip the alignment, as shown below. ``` | YEAR | NUM1 | NUM2 | NUM3 | | :--- | ---: | ---: | ---: | | 2025 | 1,000 | 20 | 6 | ``` | YEAR | NUM1 | NUM2 | NUM3 | | --- | --- | --- | --- | | 2025 | 1,000 | 20 | 6 | ### Steps to Reproduce Create a Markdown table with alignment syntax: | Header 1 | Header 2 | |:--------:|---------:| | Center | Right | Convert the Markdown using the converter. Inspect the resulting HTML output. ### Logs & Screenshots The issue might from below {token.align[headerIdx] ? '' : `text-align: ${token.align[headerIdx]}`}. I'm not sure if this change is too minor to warrant a pull request, so I’d appreciate it if you could help update the code directly. Thank you! <img width="892" height="446" alt="Image" src="https://github.com/user-attachments/assets/1e8740a3-2a20-41ff-9a6d-6988d2b37794" /> <img width="1046" height="410" alt="Image" src="https://github.com/user-attachments/assets/d4283e78-5cd0-49ef-8415-db57df57de18" /> ### Additional Information _No response_
GiteaMirror added the bug label 2026-04-25 07:02:57 -05:00
Author
Owner

@tjbck commented on GitHub (Jul 9, 2025):

Good catch, addressed with 24f0da172ef2eb498e820acddc367d8273427506!

<!-- gh-comment-id:3053789946 --> @tjbck commented on GitHub (Jul 9, 2025): Good catch, addressed with 24f0da172ef2eb498e820acddc367d8273427506!
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/open-webui#33142