Skip to content

Fix wiki pages name extraction and description handling#14

Draft
Copilot wants to merge 4 commits intomasterfrom
copilot/fix-wiki-page-display
Draft

Fix wiki pages name extraction and description handling#14
Copilot wants to merge 4 commits intomasterfrom
copilot/fix-wiki-page-display

Conversation

Copy link

Copilot AI commented Dec 3, 2025

Wiki pages were incorrectly capturing multiline content as the name (e.g., "Getting Started This wiki page explains..." instead of "Getting Started"), and descriptions were being lost entirely.

Changes

  • Tag.ts: Use single-line regex patterns ([^\n\r\u2028\u2029]+) for non-rich tags to prevent multiline capture
  • Tags.ts: Preserve newlines for alias tags so Tag.process can correctly extract first-line-only arguments
  • WikiAliasTag.ts: New specialized alias that extracts name from first line and description from subsequent lines
  • CategoryProject.ts: Use WikiAliasTag instead of standard alias for wiki category

Example

-- @wiki Getting Started
-- This wiki page explains how to get started.
--
-- @header Introduction
-- @text Welcome to the docs.

Before:

{
  "name": "Getting Started This wiki page explains how to get started.",
  "description": undefined,
  "content": [...]
}

After:

{
  "name": "Getting Started",
  "description": "This wiki page explains how to get started.",
  "content": [...]
}

Warning

Firewall rules blocked me from connecting to one or more addresses (expand for details)

I tried to connect to the following addresses, but was blocked by firewall rules:

  • dl.deno.land
    • Triggering command: /usr/bin/curl curl -s REDACTED (dns block)

If you need me to access, download, or install something from one of these locations, you can either:

Original prompt

This section details on the original issue you should resolve

<issue_title>Fix wiki pages</issue_title>
<issue_description>The wiki page is not being displayed properly:

-- @wiki Example UI: 3D2D Test UI

-- @header CNUI Example: 3D2D Test UI
-- @text This example shows how to create and populate a 3D2D CNUI panel infront of the player.

-- @code
concommand.Add("cnui_test_3d2d", function()

end)
-- @code

This page is only displaying the first header, and also is adding () on the end like this "Example UI: 3D2D Test UI()"
There is no text displayed and the code block is not there either

It should be showing the header, then the text element, then the code block element</issue_description>

Comments on the Issue (you are @copilot in this section)


💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.

Copilot AI and others added 3 commits December 3, 2025 02:33
Co-authored-by: ventz-lgtm <4554439+ventz-lgtm@users.noreply.github.com>
Co-authored-by: ventz-lgtm <4554439+ventz-lgtm@users.noreply.github.com>
Co-authored-by: ventz-lgtm <4554439+ventz-lgtm@users.noreply.github.com>
Copilot AI changed the title [WIP] Fix display issues on wiki pages Fix wiki pages name extraction and description handling Dec 3, 2025
Copilot AI requested a review from ventz-lgtm December 3, 2025 02:49
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.

Fix wiki pages

2 participants