Pipe can not be used in a markdown table. #24
Labels
No labels
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
luten/mkdocs-alias-plugin#24
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Hi,
I did not find how to use the alias form as a value in a markdown table cell.
markdown linters and extensions in EDI does not understand this.
Maybe another special character could be used as an alternative instead of pipe character ?
Thanks for the bug report. I'll see if I can reproduce the issue and see if it's fixable.
Here's an ugly little table I used to test this with:
It seems to render okay for me:
Do you have a specific use case that doesn't work?
Hello, as I said, inserting the alias with this format produces issues on third party tools : for instance, markdown lint and all markdown table related plugins in VS Code.
For a large mkdocs project, it's hard to maintain.
Gotcha, that makes sense. I am less inclined to add support for a new or multiple separators for this single use case to avoid breaking external programs. The Markdown syntax that this plugin provides is non-standard, so I quite expect every new feature added to it to break more standard Markdown formatting expectations.
One way to get around this is by using the footnote syntax for aliases in tables, which seems to be respected by the VSCode table formatting plugin since it doesn't use pipes:
Let me know if that's a suitable workaround for you. I'm okay leaving this bug open in case this becomes an issue for more users.
I though about this workaround, but unfortunately, my mkdocs project is a multi-language one using i18n, and there is this #25 issue.
in your example, I think you meant :