Skip to content

Fix markup in documentation - #1041

Merged
CppCXY merged 1 commit into
EmmyLuaLs:mainfrom
ligurio:patch-1
Apr 20, 2026
Merged

CppCXY merged 1 commit into
EmmyLuaLs:mainfrom
ligurio:patch-1

Conversation

@ligurio

@ligurio ligurio commented Apr 20, 2026

Copy link
Copy Markdown
Contributor

No description provided.

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Code Review

This pull request updates the documentation for the library and packages configuration fields in the EmmyLua configuration guide. The reviewer pointed out that the changes break the Markdown table structure by introducing extra pipe characters, which creates unintended columns. A suggestion was provided to restore the original union type formatting within a single code span.

Comment on lines +398 to +399
| `library` | `string[]` | `object[]` | `[]` | Library roots, either plain strings or objects with ignore rules |
| `packages` | `string[]` | `object[]` | `[]` | Package directories; the parent is treated as a library, but only the selected subdirectory is imported |

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

medium

This change breaks the Markdown table structure. The table header defines 4 columns (Field, Type, Default, Description), but these rows now contain 5 columns because the pipe | is no longer enclosed within a single code span. This causes the Default and Description values to be misaligned. The original format correctly represented the union type within a single column.

Suggested change
| `library` | `string[]` | `object[]` | `[]` | Library roots, either plain strings or objects with ignore rules |
| `packages` | `string[]` | `object[]` | `[]` | Package directories; the parent is treated as a library, but only the selected subdirectory is imported |
| `library` | `string[] | object[]` | `[]` | Library roots, either plain strings or objects with ignore rules |
| `packages` | `string[] | object[]` | `[]` | Package directories; the parent is treated as a library, but only the selected subdirectory is imported |

@CppCXY
CppCXY merged commit 2e0d301 into EmmyLuaLs:main Apr 20, 2026
16 checks passed
@ligurio
ligurio deleted the patch-1 branch April 20, 2026 08:26
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