-
Notifications
You must be signed in to change notification settings - Fork 3.4k
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
Show pipe ( | ) sign in the Inline Code inside Table #1193
Comments
I found the right way to escape pipe character. 😃 Table 5: Extreme solution! Ref: GitHub Flavored Markdown Spec - Example 193
|
I didn't get it, how did you manage? I don't see how the example linked solved it and I cannot see the markdown source of your working table in the last comment, only the rendered result :/ (showing the markdown with Name | Type | Default ------------ | ------------ | ----------------- xxx | xxx | `/,|\.|\:|\s/` outputs:
|
Ok I see now from this discussion in stackoverflow you should escape the pipe characters with a leading backslash
|
@yairEO That's a backslash, not a slash! |
I’d prefer not having to escape pipe symbols:
|
One more argument in favor of not escaping – elsewhere, Currently, moving such markup to a table means that the backslash will disappear. |
Bump! |
Here are my few trials below:
Table 1: There is a pipe (
|
) character inside Table Cell. It can't display properly.git cleanup
Table 2: There is a pipe (
|
) character that escape with a HTML Entity (|
). Within ` sign, all HTML Entities will output ASIS which is not what I want.git cleanup
git branch --merged | grep -v '*' | xargs git branch -d
git config --global alias.cleanup "!git branch --merged | grep -v '*' | xargs git branch -d"
Table 3: When I strip the ` sign, it works, but not what I want. Using this, we also need to escape the
*
symbol to|
.git cleanup
Table 4: This is the best solution I can figure out. It's just not perfect!
git cleanup
git branch --merged
|grep -v '*'
|xargs git branch -d
git config --global alias.cleanup "!git branch --merged
|grep -v '*'
|xargs git branch -d"
Is there a better way to show
|
sign in the Table Cell with Inline Code syntax in a Markdown document?The text was updated successfully, but these errors were encountered: