Skip to content
TheChatArchiveThe Chat Archive
MiniMaxminimax-m1· MiniMaxHugging Face LMArena Human Preference 140K

Do in KOReader is it possible to start each new header in markdown format from new page?

From a Chatbot Arena battleThe same person sent this prompt to two anonymous models at once. Compare it with Claudeclaude-opus-4-20250514-thinking-16k’s answer.
  1. User

    Do in KOReader is it possible to start each new header in markdown format from new page?

  2. MiniMax Assistant

    Yes, it is possible to configure KOReader to start each new Markdown header on a new page. The solution involves custom CSS styling to enforce page breaks before headers. Here's a step-by-step guide:


    Method: Use a Custom CSS File

    KOReader allows you to override default rendering with a custom CSS file. Here's how to force headers (#, ##, etc.) to start on new pages:

    Step 1: Create a Custom CSS File

    On your computer, create a file named custom.css with the following code:

    /* Force new page before headers */
    h1, h2, h3, h4, h5, h6 {
        break-before: page;  /* Modern CSS standard */
        /* For older readers, use: */
        page-break-before: always;
    }
    

    This CSS tells KOReader to insert a page break before every heading level (h1 to h6).


    Step 2: Transfer the CSS File to Your Device

    1. Connect your Onyx Nova 3 to your computer via USB.
    2. Navigate to the KOReader folder on your device:
      • If installed on the internal storage:
        Onyx Nova 3/koreader/
      • If installed on an SD card:
        sdcard/koreader/
    3. Create a folder named css inside the koreader folder (if it doesn’t exist).
    4. Copy custom.css into the css folder.

    Step 3: Enable the CSS in KOReader

    1. Open a Markdown file in KOReader.
    2. Tap the top center of the screen to open the menu.
    3. Go to Settings (gear icon) > Rendering mode.
    4. Under "Custom CSS file", select custom.css from the dropdown.
    5. Exit the menu. The changes apply immediately.

    Verify It Works

    Open a Markdown file with headers (e.g., # Chapter 1, ## Section 1.1). You should see each header start on a new page.


    Troubleshooting

    • CSS not applied?
      Ensure the custom.css file is in the correct location:
      koreader/css/custom.css
    • Page breaks not working?
      Some devices require a restart of KOReader after adding CSS.
    • Alternative CSS syntax:
      If break-before: page doesn’t work, try:
      h1, h2, h3, h4, h5, h6 {
          page-break-before: always;
      }
      

    Advanced: Conditional Page Breaks

    If you only want specific headers (e.g., h1 only) to start on a new page, modify the CSS:

    h1 {
        break-before: page;
    }
    

    This method gives you precise control over document formatting in KOReader. Enjoy your cleanly structured Markdown reading experience! 📖✨

Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.