-
-
Notifications
You must be signed in to change notification settings - Fork 4.7k
fix: pipe symbol markdown table rendering on terminal docs #161
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,4 +1,4 @@ | ||
| # Terminal & Shell | ||
| # Terminal & Shell | ||
|
|
||
| > The terminal is where AI engineers live. Get comfortable here. | ||
|
|
||
|
|
@@ -101,7 +101,7 @@ The three redirects you need: | |
| | `>>` | Append stdout to file | | ||
| | `2>` | Write stderr to file | | ||
| | `2>&1` | Send stderr to same place as stdout | | ||
| | `\|` | Send stdout of one command as stdin to the next | | ||
| | <code>|</code> | Send stdout of one command as stdin to the next | | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🛠️ Refactor suggestion | 🟠 Major | ⚡ Quick win Ensure consistency with pipe symbol representation in line 341. Line 341 in the Key Terms table also shows the pipe operator as 🤖 Prompt for AI Agents🧩 Analysis chain🏁 Script executed: #!/bin/bash
# Description: Extract and examine the table rendering logic and test the pipe symbol cell
echo "=== Checking inline formatter escape order ==="
rg -A 15 'function inlineFormat' site/lesson.html
echo -e "\n=== Checking table cell processing ==="
rg -B 5 -A 10 'cells.*split.*\|' site/lesson.html
echo -e "\n=== Looking for any special HTML passthrough logic ==="
rg -C 3 'innerHTML|dangerouslySet|raw.*html' site/lesson.htmlRepository: rohitg00/ai-engineering-from-scratch Length of output: 8118 🏁 Script executed: #!/bin/bash
set -euo pipefail
echo "=== Locate table rendering function and where inlineFormat is applied ==="
rg -n "function flushTable|flushTable\\(" site/lesson.html
echo -e "\n=== Show flushTable implementation ==="
rg -n "function flushTable\\b" -n site/lesson.html --context 8
echo -e "\n=== Find where table cells are passed through inlineFormat ==="
rg -n "inlineFormat\\(.*\\bcell|inlineFormat\\(.*\\bc\\b|inlineFormat\\(c\\b|inlineFormat\\(\\w+\\)" site/lesson.html | head -n 50
echo -e "\n=== Inspect parseMd / parseMd pipeline around table handling ==="
rg -n "function parseMd\\b|parseMd\\(" site/lesson.html
rg -n "inTable|tableRows" site/lesson.html --context 3Repository: rohitg00/ai-engineering-from-scratch Length of output: 3490 🏁 Script executed: #!/bin/bash
set -euo pipefail
sed -n '95,112p' phases/00-setup-and-tooling/10-terminal-and-shell/docs/en.md | cat -nRepository: rohitg00/ai-engineering-from-scratch Length of output: 720 Fix rendering of the pipe symbol in the redirect table.
🤖 Prompt for AI Agents |
||
|
|
||
| ### Step 3: Background processes | ||
|
|
||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Critical: Leading invisible character breaks heading rendering.
The line starts with an invisible character (appears to be a BOM/U+FEFF) before the
#marker. Based on the renderer insite/lesson.html:2240, the heading regex/^# (.+)/expects the line to start with#. This leading character will prevent the pattern from matching, breaking H1 rendering and TOC generation entirely.🔧 Proposed fix
As per coding guidelines, the renderer matches headings with
/^# (.+)/(site/lesson.html:2240), requiring#at line start.📝 Committable suggestion
🧰 Tools
🪛 LanguageTool
[grammar] ~1-~1: Ensure spelling is correct
Context: # Terminal & Shell > The terminal is where AI engineers live...
(QB_NEW_EN_ORTHOGRAPHY_ERROR_IDS_1)
🤖 Prompt for AI Agents