Skip to main content
We’ve updated our Terms of Service. A new AI Addendum clarifies how Stack Overflow utilizes AI interactions.
Code Golf

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

Required fields*

Build a Markdown bomb [closed]

I'm sure most of us have heard of zip bombs and similar decompression bomb tricks, where a maliciously crafted input creates a massively disproportionate output. We even had a question on here to do that to a compiler at one point.

Well, it occurs to me that Markdown is a compression format of sorts, replacing bulky HTML tags with "compressed" MD tokens. Therefore, might it be possible to build a compression bomb in Markdown?

Challenge rules:

  • The submission should be a piece of markdown text, between 50 and 256 characters in length. (Imposing a minimum to head off some smart-aleck posting a 3-character response or similar.)

  • The submission will be processed by StackExchange's Markdown processor as implemented in this site.

  • Your score will be the ratio of character count in the resulting HTML to the character count of your Markdown text.

  • Highest score wins.

Answer*

Draft saved
Draft discarded
Cancel
11
  • 2
    \$\begingroup\$ For anyone else wondering: en.wikipedia.org/wiki/Billion_laughs_attack \$\endgroup\$ Commented Sep 20, 2018 at 10:00
  • 2
    \$\begingroup\$ This is a cool find, but it's not Markdown and MathJax is not supported on this site, so it's kind of outside the stated parameters of the rules. \$\endgroup\$ Commented Sep 20, 2018 at 13:10
  • 23
    \$\begingroup\$ \$are^{you^{sure}}\$ it’s not supported? The page titled "Markdown Editing Help" at codegolf.stackexchange.com/editing-help explicitly mentions LaTeX. \$\endgroup\$ Commented Sep 20, 2018 at 13:27
  • 1
    \$\begingroup\$ @RomanOdaisky Not at all. You've probably done the calculation yourself, and reached this conclusion. I'm just saying, as a math teacher and enthusiast, that it seems like it would be a cool exercise. \$\endgroup\$ Commented Sep 20, 2018 at 15:30
  • 6
    \$\begingroup\$ @KamilDrakari Your wish is my command \$\def\a{🤣🤣}\def\b{\a\a}\def\c{\b\b}\def\d{\c\c}\d\d\$ \$\endgroup\$ Commented Sep 20, 2018 at 17:17

AltStyle によって変換されたページ (->オリジナル) /