/* GitHub-style Markdown Preview Styling */ .markdown-preview { color: #24292f; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans", Helvetica, Arial, sans-serif; font-size: 16px; line-height: 1.6; word-wrap: break-word; overflow-wrap: break-word; max-width: 100%; word-break: break-word; } /* Ensure all child elements respect container width */ .markdown-preview * { max-width: 100%; box-sizing: border-box; } .dark .markdown-preview { color: #c9d1d9; } .markdown-preview h1, .markdown-preview h2, .markdown-preview h3, .markdown-preview h4, .markdown-preview h5, .markdown-preview h6 { margin-top: 24px; margin-bottom: 16px; font-weight: 600; line-height: 1.25; } .markdown-preview h1 { font-size: 2em; border-bottom: 1px solid #d0d7de; padding-bottom: 0.3em; } .dark .markdown-preview h1 { border-bottom-color: #21262d; } .markdown-preview h2 { font-size: 1.5em; border-bottom: 1px solid #d0d7de; padding-bottom: 0.3em; } .dark .markdown-preview h2 { border-bottom-color: #21262d; } .markdown-preview h3 { font-size: 1.25em; } .markdown-preview h4 { font-size: 1em; } .markdown-preview h5 { font-size: 0.875em; } .markdown-preview h6 { font-size: 0.85em; color: #57606a; } .dark .markdown-preview h6 { color: #8b949e; } .markdown-preview p { margin-top: 0; margin-bottom: 16px; } /* Inline code - with background */ .markdown-preview code { padding: 0.2em 0.4em; margin: 0; font-size: 85%; background-color: rgba(175, 184, 193, 0.2); border-radius: 6px; font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace; } .dark .markdown-preview code { background-color: rgba(110, 118, 129, 0.4); } /* Code block wrapper with header */ .markdown-preview .code-block-wrapper { margin-bottom: 16px; border-radius: 8px; overflow: hidden; border: 1px solid #d0d7de; background-color: #f6f8fa; } .dark .markdown-preview .code-block-wrapper { border-color: #30363d; background-color: #0d1117; } /* Code block header */ .markdown-preview .code-block-header { display: flex; justify-content: space-between; align-items: center; padding: 4px 10px; background-color: #f6f8fa; border-bottom: 1px solid #d0d7de; font-size: 12px; } .dark .markdown-preview .code-block-header { background-color: #161b22; border-bottom-color: #30363d; } /* Language label */ .markdown-preview .code-block-language { font-weight: 600; color: #57606a; text-transform: uppercase; font-size: 10px; letter-spacing: 0.5px; } .dark .markdown-preview .code-block-language { color: #8b949e; } /* Copy button */ .markdown-preview .code-block-copy { padding: 2px 6px; background-color: transparent; border: 1px solid #d0d7de; border-radius: 6px; color: #24292f; font-size: 10px; cursor: pointer; transition: all 0.2s; font-weight: 500; } .markdown-preview .code-block-copy:hover { background-color: #f3f4f6; border-color: #1f2328; } .dark .markdown-preview .code-block-copy { color: #c9d1d9; border-color: #30363d; } .dark .markdown-preview .code-block-copy:hover { background-color: #21262d; border-color: #8b949e; } /* Code blocks - with background */ .markdown-preview .code-block-wrapper pre { padding: 16px; overflow: auto; font-size: 85%; line-height: 1.45; background-color: #0d1117; margin: 0; border-radius: 0; } /* Legacy pre blocks (without wrapper) */ .markdown-preview pre:not(.code-block-wrapper pre) { padding: 16px; overflow: auto; font-size: 85%; line-height: 1.45; background-color: #afb8c133; border-radius: 6px; margin-bottom: 16px; } .dark .markdown-preview pre:not(.code-block-wrapper pre) { background-color: rgba(110, 118, 129, 0.4); } /* Code inside pre blocks - NO background (transparent) */ .markdown-preview pre code { display: inline; max-width: auto; padding: 0; margin: 0; overflow: visible; line-height: inherit; word-wrap: normal; background-color: transparent !important; border: 0; border-radius: 0; } /* Preserve highlight.js syntax highlighting colors */ .markdown-preview pre code.hljs { background: transparent !important; padding: 0 !important; } .markdown-preview table { border-spacing: 0; border-collapse: collapse; display: block; width: 100%; max-width: 100%; overflow-x: auto; margin-bottom: 16px; } .markdown-preview table tr { background-color: #ffffff; border-top: 1px solid #d0d7de; } .dark .markdown-preview table tr { background-color: #0d1117; border-top-color: #21262d; } .markdown-preview table tr:nth-child(2n) { background-color: #f6f8fa; } .dark .markdown-preview table tr:nth-child(2n) { background-color: #161b22; } .markdown-preview table th, .markdown-preview table td { padding: 6px 13px; border: 1px solid #d0d7de; } .dark .markdown-preview table th, .dark .markdown-preview table td { border-color: #21262d; } .markdown-preview table th { font-weight: 600; background-color: #f6f8fa; } .dark .markdown-preview table th { background-color: #161b22; } .markdown-preview blockquote { padding: 0 1em; color: #57606a; border-left: 0.25em solid #d0d7de; margin: 0 0 16px 0; } .dark .markdown-preview blockquote { color: #8b949e; border-left-color: #3b434b; } .markdown-preview ul, .markdown-preview ol { padding-left: 2em; margin-top: 0; margin-bottom: 16px; } /* Nested lists */ .markdown-preview ul ul, .markdown-preview ul ol, .markdown-preview ol ul, .markdown-preview ol ol { margin-top: 0.25em; margin-bottom: 0.25em; } /* List items */ .markdown-preview li { margin-bottom: 0.25em; line-height: 1.6; } .markdown-preview li + li { margin-top: 0.25em; } /* Better bullet points */ .markdown-preview ul > li { list-style-type: disc; } .markdown-preview ul ul > li { list-style-type: circle; } .markdown-preview ul ul ul > li { list-style-type: square; } /* Ordered list styling */ .markdown-preview ol > li { list-style-type: decimal; } .markdown-preview ol ol > li { list-style-type: lower-alpha; } .markdown-preview ol ol ol > li { list-style-type: lower-roman; } /* List item content spacing */ .markdown-preview li > p { margin-top: 0.5em; margin-bottom: 0.5em; } .markdown-preview li > p:first-child { margin-top: 0; } .markdown-preview li > p:last-child { margin-bottom: 0; } .markdown-preview hr { height: 0.25em; padding: 0; margin: 24px 0; background-color: #d0d7de; border: 0; } .dark .markdown-preview hr { background-color: #21262d; } .markdown-preview a { color: #0969da; text-decoration: none; } .dark .markdown-preview a { color: #58a6ff; } .markdown-preview a:hover { text-decoration: underline; } .markdown-preview strong { font-weight: 600; } .markdown-preview em { font-style: italic; } .markdown-preview u { text-decoration: underline; } .markdown-preview img { max-width: 100%; height: auto; border-radius: 6px; margin: 16px 0; }