[PR #4097] [MERGED] Fix/drupal wiki (improve table & url handling) #4514

Closed
opened 2026-02-22 18:35:59 -05:00 by yindo · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/Mintplex-Labs/anything-llm/pull/4097
Author: @rexjohannes
Created: 7/6/2025
Status: Merged
Merged: 7/7/2025
Merged by: @timothycarambat

Base: masterHead: fix/drupal-wiki


📝 Commits (9)

  • b16778b feat: add support for custom table formatting in htmlToText conversion
  • c72d8cc fix tables
  • 3fb327e feat: improve plain text table formatting for AI readability
  • 9185f0c fix options
  • e841662 improve drupal wiki connector
  • 8b0ddfb final fix
  • c612f6d adjust leading slash to match code
  • 22c9dce linting
  • ec489ad Merge branch 'master' into fix/drupal-wiki

📊 Changes

1 file changed (+17 additions, -5 deletions)

View changed files

📝 collector/utils/extensions/DrupalWiki/DrupalWiki/index.js (+17 -5)

📄 Description

Pull Request Type

  • feat
  • 🐛 fix
  • ♻️ refactor
  • 💄 style
  • 🔨 chore
  • 📝 docs

Relevant Issues

N/A

What is in this change?

This pull request makes changes to the DrupalWiki class in collector/utils/extensions/DrupalWiki/DrupalWiki/index.js to improve URL generation and text processing. The most important changes include refining the URL structure for pages and enhancing the processing of page body content by introducing table formatting options.

URL generation improvements:

  • Modified the URL structure in the getPageUrl method to include /node/ in the path, making the URLs more specific and aligned with DrupalWiki conventions.

Text processing enhancements:

  • Updated the #processPageBody method to preserve table structure in plain text by adding formatting options such as column spacing, row spacing, uppercase headers, and unlimited column width. Removed the inclusion of the URL link in the processed content output.

Additional Information

N/A

Developer Validations

  • I ran yarn lint from the root of the repo & committed changes
  • Relevant documentation has been updated
  • I have tested my code functionality
  • Docker build succeeds locally

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/Mintplex-Labs/anything-llm/pull/4097 **Author:** [@rexjohannes](https://github.com/rexjohannes) **Created:** 7/6/2025 **Status:** ✅ Merged **Merged:** 7/7/2025 **Merged by:** [@timothycarambat](https://github.com/timothycarambat) **Base:** `master` ← **Head:** `fix/drupal-wiki` --- ### 📝 Commits (9) - [`b16778b`](https://github.com/Mintplex-Labs/anything-llm/commit/b16778be4942679f67c88f4f2abea92e9c550ee5) feat: add support for custom table formatting in htmlToText conversion - [`c72d8cc`](https://github.com/Mintplex-Labs/anything-llm/commit/c72d8cc1883e60e1e57e9c53bffeff1d78d21de8) fix tables - [`3fb327e`](https://github.com/Mintplex-Labs/anything-llm/commit/3fb327e11bee0102653f2a636a82b80b543adc84) feat: improve plain text table formatting for AI readability - [`9185f0c`](https://github.com/Mintplex-Labs/anything-llm/commit/9185f0c39d2ae1d59cbc3d6ea0315ec5dcd8f97c) fix options - [`e841662`](https://github.com/Mintplex-Labs/anything-llm/commit/e8416625b4d6afce9375e23221dace494da9beb6) improve drupal wiki connector - [`8b0ddfb`](https://github.com/Mintplex-Labs/anything-llm/commit/8b0ddfb19f1a921ef1d47e19fe2f3257dcd64fab) final fix - [`c612f6d`](https://github.com/Mintplex-Labs/anything-llm/commit/c612f6d562b08075e27bef4efa796d38e3b3c5de) adjust leading slash to match code - [`22c9dce`](https://github.com/Mintplex-Labs/anything-llm/commit/22c9dce668e3b8044bbfefc4f6231928136d0672) linting - [`ec489ad`](https://github.com/Mintplex-Labs/anything-llm/commit/ec489ada2dd97528784f29e4baf1a4aed466fdd6) Merge branch 'master' into fix/drupal-wiki ### 📊 Changes **1 file changed** (+17 additions, -5 deletions) <details> <summary>View changed files</summary> 📝 `collector/utils/extensions/DrupalWiki/DrupalWiki/index.js` (+17 -5) </details> ### 📄 Description ### Pull Request Type - [ ] ✨ feat - [x] 🐛 fix - [ ] ♻️ refactor - [ ] 💄 style - [ ] 🔨 chore - [ ] 📝 docs ### Relevant Issues N/A ### What is in this change? This pull request makes changes to the `DrupalWiki` class in `collector/utils/extensions/DrupalWiki/DrupalWiki/index.js` to improve URL generation and text processing. The most important changes include refining the URL structure for pages and enhancing the processing of page body content by introducing table formatting options. ### URL generation improvements: * Modified the URL structure in the `getPageUrl` method to include `/node/` in the path, making the URLs more specific and aligned with DrupalWiki conventions. ### Text processing enhancements: * Updated the `#processPageBody` method to preserve table structure in plain text by adding formatting options such as column spacing, row spacing, uppercase headers, and unlimited column width. Removed the inclusion of the URL link in the processed content output. ### Additional Information N/A ### Developer Validations <!-- All of the applicable items should be checked. --> - [x] I ran `yarn lint` from the root of the repo & committed changes - [x] Relevant documentation has been updated - [x] I have tested my code functionality - [x] Docker build succeeds locally --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
yindo added the pull-request label 2026-02-22 18:35:59 -05:00
yindo closed this issue 2026-02-22 18:35:59 -05:00
yindo changed title from [PR #4097] Fix/drupal wiki (improve table & url handling) to [PR #4097] [MERGED] Fix/drupal wiki (improve table & url handling) 2026-06-05 15:18:57 -04:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: Mintplex-Labs/anything-llm#4514