Skip to content

feat: Add sidebar TOC navigation, code block styling, and table design system#8

Merged
RunningShrimp merged 8 commits into
feature/add-sidebar-tocfrom
master
Dec 10, 2025
Merged

feat: Add sidebar TOC navigation, code block styling, and table design system#8
RunningShrimp merged 8 commits into
feature/add-sidebar-tocfrom
master

Conversation

@RunningShrimp

Copy link
Copy Markdown
Owner

feat: Add sidebar TOC navigation, code block styling, and table design system

Copilot AI and others added 8 commits December 10, 2025 11:17
Co-authored-by: RunningShrimp <59407382+RunningShrimp@users.noreply.github.com>
feat: add sidebar table of contents navigation component
…ture-and-navigation

[WIP] Optimize GitHub Pages structure and navigation experience
…w-knowledge

[WIP] Add comprehensive high-frequency interview questions and answers
Copilot AI review requested due to automatic review settings December 10, 2025 11:42
@RunningShrimp
RunningShrimp merged commit 5c18132 into feature/add-sidebar-toc Dec 10, 2025
7 checks passed
RunningShrimp added a commit that referenced this pull request Dec 10, 2025
Merge pull request #8 from RunningShrimp/master

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Pull request overview

This pull request performs formatting normalization on the index.md file, which appears to be a comprehensive Chinese-language guide for AI/LLM application development interview preparation. The changes are purely cosmetic, removing inconsistent leading whitespace throughout the document while preserving proper markdown list indentation structure.

Key Changes:

  • Normalized indentation and removed leading spaces from 1140 lines
  • Maintained all original content, code examples, and markdown structure
  • Ensured consistent formatting for improved readability and markdown parsing

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread index.md
if msg.tool_calls:
for tc in msg.tool_calls:
if tc.function.name == "get_weather":
args = eval(tc.function.arguments) # 注意:生产中不要直接 eval,需用 json.loads

Copilot AI Dec 10, 2025

Copy link

Choose a reason for hiding this comment

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

The use of eval on tc.function.arguments allows arbitrary Python code execution based on data coming directly from the model response, which can be influenced by user input or prompt injection. An attacker could craft tool call arguments like __import__('os').system('rm -rf /'), leading to remote code execution when eval runs. Replace eval with safe JSON parsing (e.g., json.loads(tc.function.arguments)) and ensure you validate the parsed fields against an allowlist of expected keys and types.

Copilot uses AI. Check for mistakes.
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.

3 participants