Skip to content

Commit 3d37703

Browse files
committed
Revert "Prompt angle bracket visibility (#929)"
This reverts commit b4d7721.
1 parent b4d7721 commit 3d37703

File tree

3 files changed

+5
-22
lines changed

3 files changed

+5
-22
lines changed

CHANGELOG.md

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,6 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
1111
- Added PostHog events for chat UI interactions (details card expand/collapse, copy answer, table of contents toggle) and repo tracking in `wa_chat_message_sent`. [#922](https://github.com/sourcebot-dev/sourcebot/pull/922)
1212
- Added Bitbucket Cloud OAuth identity provider support (`provider: "bitbucket-cloud"`) for SSO and account-linked permission syncing. [#924](https://github.com/sourcebot-dev/sourcebot/pull/924)
1313

14-
### Fixed
15-
- Fixed text inside angle brackets (e.g., `<id>`) being hidden in chat prompt display due to HTML parsing. [#929](https://github.com/sourcebot-dev/sourcebot/pull/929)
16-
1714
## [4.11.7] - 2026-02-23
1815

1916
### Changed

packages/web/src/features/chat/components/chatThread/chatThreadListItem.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -334,7 +334,6 @@ const ChatThreadListItemComponent = forwardRef<HTMLDivElement, ChatThreadListIte
334334
<MarkdownRenderer
335335
content={userQuestion.trim()}
336336
className="prose-p:m-0"
337-
disableRawHtml={true}
338337
/>
339338
</div>
340339

packages/web/src/features/chat/components/chatThread/markdownRenderer.tsx

Lines changed: 5 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -101,15 +101,9 @@ const remarkTocExtractor = () => {
101101
interface MarkdownRendererProps {
102102
content: string;
103103
className?: string;
104-
/**
105-
* When true, disables raw HTML parsing. This prevents text like `<id>` from
106-
* being interpreted as HTML tags. Use this for user-provided content that
107-
* shouldn't contain embedded HTML.
108-
*/
109-
disableRawHtml?: boolean;
110104
}
111105

112-
const MarkdownRendererComponent = forwardRef<HTMLDivElement, MarkdownRendererProps>(({ content, className, disableRawHtml = false }, ref) => {
106+
const MarkdownRendererComponent = forwardRef<HTMLDivElement, MarkdownRendererProps>(({ content, className }, ref) => {
113107
const router = useRouter();
114108

115109
const remarkPlugins = useMemo((): PluggableList => {
@@ -121,13 +115,8 @@ const MarkdownRendererComponent = forwardRef<HTMLDivElement, MarkdownRendererPro
121115
}, []);
122116

123117
const rehypePlugins = useMemo((): PluggableList => {
124-
const plugins: PluggableList = [];
125-
126-
if (!disableRawHtml) {
127-
plugins.push(rehypeRaw);
128-
}
129-
130-
plugins.push(
118+
return [
119+
rehypeRaw,
131120
[
132121
rehypeSanitize,
133122
{
@@ -140,10 +129,8 @@ const MarkdownRendererComponent = forwardRef<HTMLDivElement, MarkdownRendererPro
140129
} satisfies SanitizeSchema,
141130
],
142131
annotateCodeBlocks,
143-
);
144-
145-
return plugins;
146-
}, [disableRawHtml]);
132+
];
133+
}, []);
147134

148135
const renderPre = useCallback(({ children, node, ...rest }: React.JSX.IntrinsicElements['pre'] & { node?: Element }) => {
149136
if (node?.properties && node.properties.isBlock === true) {

0 commit comments

Comments
 (0)