🔍 Code Extractor

Browse Components

Showing 20 of 979 components

  • function html_to_markdown

    Converts HTML text back to Markdown format using regex-based pattern matching and replacement, handling headers, code blocks, formatting, links, lists, and HTML entities.

    File: /tf/active/vicechatdev/vice_ai/complex_app.py | Lines: 1933-1997

    html markdown conversion text-processing regex
  • function format_inline_markdown

    Converts inline Markdown syntax (bold, italic, code, links) to HTML tags while escaping HTML entities for safe rendering.

    File: /tf/active/vicechatdev/vice_ai/complex_app.py | Lines: 1916-1931

    markdown html text-formatting conversion inline-formatting
  • function basic_markdown_to_html

    Converts basic Markdown syntax to HTML without using external Markdown libraries, handling headers, lists, code blocks, and inline formatting.

    File: /tf/active/vicechatdev/vice_ai/complex_app.py | Lines: 1821-1914

    markdown html conversion text-processing formatting
  • function markdown_to_html

    Converts Markdown formatted text to HTML using the python-markdown library with multiple extensions, falling back to basic conversion if the library is unavailable.

    File: /tf/active/vicechatdev/vice_ai/complex_app.py | Lines: 1794-1819

    markdown html conversion text-processing formatting
  • function clean_html_tags

    Removes HTML tags and entities from text strings, returning clean plain text suitable for PDF display or other formatted output.

    File: /tf/active/vicechatdev/vice_ai/complex_app.py | Lines: 1775-1792

    html text-processing sanitization string-manipulation pdf-generation
  • function add_table_to_pdf

    Adds a formatted table to a ReportLab PDF document with automatic text wrapping, column width calculation, and alternating row colors.

    File: /tf/active/vicechatdev/vice_ai/complex_app.py | Lines: 1639-1773

    pdf-generation reportlab table-formatting text-wrapping document-generation
  • function add_formatted_content_to_pdf

    Processes markdown elements and adds them to a PDF document story with appropriate formatting, handling headers, paragraphs, lists, and tables.

    File: /tf/active/vicechatdev/vice_ai/complex_app.py | Lines: 1608-1637

    pdf-generation reportlab markdown-to-pdf document-formatting content-rendering
  • function add_inline_formatting_to_paragraph

    Parses markdown-formatted text and applies inline formatting (bold, italic, code) to a Microsoft Word paragraph object using the python-docx library.

    File: /tf/active/vicechatdev/vice_ai/complex_app.py | Lines: 1578-1606

    markdown word-document text-formatting docx inline-formatting
  • function process_inline_markdown

    Processes inline markdown formatting by unescaping HTML entities in text. Currently performs basic cleanup while preserving markdown syntax for downstream processing.

    File: /tf/active/vicechatdev/vice_ai/complex_app.py | Lines: 1479-1492

    markdown text-processing html-entities preprocessing formatting
  • function process_markdown_content

    Parses markdown-formatted text content and converts it into a structured list of content elements with type annotations and formatting metadata suitable for document export.

    File: /tf/active/vicechatdev/vice_ai/complex_app.py | Lines: 1306-1477

    markdown parser document-processing text-processing content-conversion
  • function api_export_document

    Flask API endpoint that exports a document in either DOCX or PDF format, with authentication and authorization checks.

    File: /tf/active/vicechatdev/vice_ai/complex_app.py | Lines: 1265-1303

    api export document pdf docx
  • function api_replace_section_content

    API endpoint that replaces the content of a specific section within a document, storing the old content for potential undo operations and updating the section's timestamp.

    File: /tf/active/vicechatdev/vice_ai/complex_app.py | Lines: 1226-1260

    api rest flask document-management content-replacement
  • function api_get_chat_session

    Flask API endpoint that retrieves a specific chat session by ID, verifying user access permissions before returning the session data.

    File: /tf/active/vicechatdev/vice_ai/complex_app.py | Lines: 1207-1222

    flask api rest-endpoint chat-session authentication
  • function api_send_chat_message

    Flask API endpoint that handles sending a message in a chat session, processes it through a hybrid RAG engine with configurable search and memory settings, and returns an AI-generated response with references.

    File: /tf/active/vicechatdev/vice_ai/complex_app.py | Lines: 1014-1203

    flask api chat rag hybrid-rag
  • function api_move_section

    Flask API endpoint that moves a document section up or down in the section order, with authentication and authorization checks.

    File: /tf/active/vicechatdev/vice_ai/complex_app.py | Lines: 946-974

    api flask rest-api document-management section-reordering
  • function api_delete_section

    Flask API endpoint that deletes a specific section from a document after validating user authorization and document existence.

    File: /tf/active/vicechatdev/vice_ai/complex_app.py | Lines: 923-942

    api rest delete section document-management
  • function api_update_section

    REST API endpoint that updates an existing section within a document, allowing modification of title, content, type, and level properties with authentication and authorization checks.

    File: /tf/active/vicechatdev/vice_ai/complex_app.py | Lines: 884-919

    api rest flask document-management section-update
  • function api_create_section

    Flask API endpoint that creates a new section within a specified document, handling section positioning, type, level, title, and content with proper authentication and authorization checks.

    File: /tf/active/vicechatdev/vice_ai/complex_app.py | Lines: 820-880

    api flask rest-endpoint document-management section-creation
  • function api_delete_document

    REST API endpoint that deletes a document from the application state after verifying the user's ownership and authentication.

    File: /tf/active/vicechatdev/vice_ai/complex_app.py | Lines: 799-815

    flask rest-api delete-endpoint document-management authentication
  • function api_update_document

    Flask API endpoint that updates document metadata (title and custom metadata fields) for a specific document, with authentication and authorization checks.

    File: /tf/active/vicechatdev/vice_ai/complex_app.py | Lines: 770-795

    api rest flask document-management update