Skip to content

When I try to print, Typedown closes #42

@ciresnave

Description

@ciresnave

Let me start by saying, thank you! Typedown is wonderful! I use Markdown extensively for documenting my software projects and needed first a previewer and later an editor for Markdown outside of VS Code. Typedown became both and works wonderfully.

Today, I needed to print some Markdown. Specifically, I have a cheat sheet about polynomials that I wanted to print from my Windows 11 PC. As soon as I click print in Typedown, Typedown closes. It does not print anything.

In order to reproduce this, here is the content of the cheat sheet:

🧠 Polynomial Cheat Sheet

✅ What Is a Polynomial?

A polynomial is an expression made of variables and constants, using only addition, subtraction, and multiplication, with whole number exponents.

Examples:

  • 3x^2 + 2x - 1
  • x^4 - 5x^2 + 6
  • 4xy + y^2 - 3

Not Polynomials:

  • 1/x ← division by variable ❌
  • √x ← root (exponent is ½) ❌
  • x^-2 ← negative exponent ❌

✏️ Polynomial Parts

  • Term: 4x^2, -7xy, or 3
  • Coefficient: number in front of variable
  • Degree: highest power of any term
  • Monomial: 1 term
  • Binomial: 2 terms
  • Trinomial: 3 terms

🧩 Factoring Trick (for trinomials)

To factor: x^2 + bx + c

Find two numbers a and b such that:

  • a + b = coefficient of x
  • a * b = constant term

Then:

  • x^2 + bx + c = (x + a)(x + b)

🔁 FOIL = First, Outer, Inner, Last

Used to expand:(x + a)(x + b) = x^2 + (a + b)x + ab


✨ Shortcut Forms

  • (x + a)^2 = x^2 + 2ax + a^2
  • (x - a)^2 = x^2 - 2ax + a^2
  • x^2 - a^2 = (x + a)(x - a) ← Difference of squares

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions