Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -43,11 +43,11 @@ model-assets/
openspec/
logs/

.agents/
.devspace/
devspace.yaml
k8s/helm/**/*.tgz
k8s/helm/nexent/Chart.lock

MAC_DEVELOPMENT_GUIDE.md
# Mac本地开发数据持久化(无需提交)
data/
13 changes: 6 additions & 7 deletions frontend/components/ui/markdownRenderer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -974,20 +974,19 @@ export const CodeBlock: React.FC<{
}> = ({ codeContent, language = "python" }) => {
const { t } = useTranslation("common");

const customStyle = {
const customStyle = {
...oneLight,
'pre[class*="language-"]': {
...oneLight['pre[class*="language-"]'],
background: "#f8f8f8",
borderRadius: "0",
padding: "12px 16px",
margin: "0",
padding: "1rem",
fontSize: "0.875rem",
lineHeight: "1.5",
whiteSpace: "pre-wrap",
wordWrap: "break-word",
wordBreak: "break-word",
overflowWrap: "break-word",
wordBreak: "normal",
overflowWrap: "anywhere",
overflow: "auto",
width: "100%",
boxSizing: "border-box",
Expand All @@ -1002,8 +1001,8 @@ export const CodeBlock: React.FC<{
lineHeight: "1.5",
whiteSpace: "pre-wrap",
wordWrap: "break-word",
wordBreak: "break-word",
overflowWrap: "break-word",
wordBreak: "normal",
overflowWrap: "anywhere",
width: "100%",
padding: "0",
display: "block",
Expand Down
6 changes: 6 additions & 0 deletions frontend/styles/react-markdown.css
Original file line number Diff line number Diff line change
Expand Up @@ -516,6 +516,12 @@
opacity: 0.7;
}

/* Ensure Prism tokens display inline within code blocks */
.code-block-content .token,
.code-block-content span[class*="token"] {
display: inline;
}

.token.comment {
font-style: italic;
color: #6a9955;
Expand Down
Loading