Skip to content

[BUG] TXT export uses generateMarkdown() β€” outputs markdown syntax instead of plain textΒ #359

Description

@nyxsky404

πŸ“Œ Bug Description

The "Export as TXT" button in the dashboard export dropdown calls generateMarkdown(state) and saves the result as a .txt file. The output contains markdown formatting syntax (#, **, - [ ], _italics_) which is not appropriate for a plain text file.

Affected file: src/dashboard.ts β€” lines 1038–1052

// --- TXT EXPORT (LIVE DASHBOARD) ---
document.getElementById("export-txt-btn")?.addEventListener("click", async () => {
  try {
    const state = await chrome.runtime.sendMessage({ type: "GET_STATE" });
    if (!state) throw new Error("No meeting data available");
    const textContent = generateMarkdown(state); // <-- produces markdown, not plain text
    const filename = `meeting-summary-${new Date().toISOString().slice(0, 10)}.txt`;
    downloadFile(textContent, filename, "text/plain");
    showToast("Downloaded as .txt file", "success");
  } catch (err) { ... }
});

The generateMarkdown() function produces output like:

# Meeting Summary β€” May 31, 2026

**Meeting ID:** abc-defg-hij
**Duration:** 00:45:12

## Action Items
- [ ] Send proposal β€” Alice
- [x] Review budget β€” Bob

## Key Decisions
- Approved new tooling _β€” CTO_

This is markdown, not plain text.

πŸ”„ Steps to Reproduce

  1. Start a meeting with Late-Meet and let it capture some transcript
  2. Open the dashboard side panel
  3. Click "Export Summary" β†’ "Export as TXT"
  4. Open the downloaded .txt file
  5. Observe markdown syntax characters (#, **, - [ ], _) in the output

βœ… Expected Behavior

The TXT export should produce clean plain text without any markdown formatting:

Meeting Summary β€” May 31, 2026

Meeting ID: abc-defg-hij
Duration: 00:45:12

Action Items
β€’ Send proposal β€” Alice (done)
β€’ Review budget β€” Bob

Key Decisions
β€’ Approved new tooling β€” CTO

❌ Actual Behavior

The TXT file contains raw markdown syntax that renders as formatting noise when opened in Notepad, TextEdit, or any plain text viewer.

πŸ’» Environment

  • Chrome Version: Any
  • Operating System: Any
  • Extension Version: 1.2.0
  • Transcription Provider: N/A (export feature issue)

πŸ› οΈ Suggested Fix

Create a separate generatePlainText(state) function that strips markdown syntax:

  • Replace # headers with plain text + newlines
  • Replace **bold** with plain text
  • Replace - [ ] / - [x] with bullet points and status indicators
  • Replace _italics_ with plain text

Or apply a simple post-processing step to strip markdown from the output before saving as TXT.

Activity

  1. added
    gssocOfficial GSSoC contribution issue
    gssoc:approvedGSSoC: PR approved and scored
    bugSomething isn't working
    enhancementNew feature or request
    on May 31, 2026
  2. github-actions commented on May 31, 2026

    @github-actions
    Contributor

    πŸ‘‹ Hi @nyxsky404, thank you for opening this issue! I have automatically assigned this issue to you since you raised it.

    Please follow the contribution guidelines and submit a PR. Let us know if you need any assistance! πŸš€


    Please consider starring the repository ⭐ to show your support!

  3. added
    level:intermediateDifficulty level: Intermediate (35 pts)
    type:bugType: Bug Fix (Optional bonus)
    type:designType: Design / UI / UX (Optional bonus)
    component:aiComponent: AI/LLM integration
    on Jun 1, 2026
  4. added a commit that references this issue on Jun 1, 2026
    d781a56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingcomponent:aiComponent: AI/LLM integrationgssocOfficial GSSoC contribution issuegssoc:approvedGSSoC: PR approved and scoredlevel:intermediateDifficulty level: Intermediate (35 pts)size/Mtype:codeType: Code changetype:designType: Design / UI / UX (Optional bonus)type:featureType: New Feature

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions