ruanyf/markdown-it-emphasis-alt — explained in plain English
Analysis updated 2026-07-17 · repo last pushed 2016-04-19
Allow users to write bold text with spaces inside the asterisks without breaking formatting.
Make markdown parsing more forgiving in apps where users don't follow strict whitespace rules.
Swap in this plugin for default emphasis parsing in an existing markdown-it setup.
| ruanyf/markdown-it-emphasis-alt | 3imed-jaberi/cryptography-si-isamm | 3imed-jaberi/koa-isomorphic-router | |
|---|---|---|---|
| Stars | 2 | 2 | 2 |
| Language | JavaScript | JavaScript | JavaScript |
| Last pushed | 2016-04-19 | 2021-09-25 | 2021-02-06 |
| Maintenance | Dormant | Dormant | Dormant |
| Setup difficulty | easy | easy | easy |
| Complexity | 1/5 | 1/5 | 2/5 |
| Audience | developer | researcher | developer |
Figures from each repo's GitHub metadata at analysis time.
This is a small plugin that changes how markdown converts emphasis markers (asterisks and underscores) into italic and bold text in HTML. Normally, markdown has strict rules about when or _ characters create emphasis, it looks at spaces and other punctuation around them to figure out if you're opening or closing an italic or bold section. This plugin throws out those rules and uses a simpler approach: it just looks at the markers themselves, ignoring whitespace. So italic* and bold (with spaces inside) both work as expected, which the standard markdown spec wouldn't allow. The plugin works by hooking into markdown-it, which is a popular JavaScript library for converting markdown text into HTML. Once you install this plugin and attach it to your markdown-it instance, any text you process will use this alternative emphasis parsing instead of the default behavior. From the user's perspective, you write markdown as usual and get back HTML with <em> tags for italics and <strong> tags for bold. You'd use this if the standard markdown emphasis rules feel too strict or pedantic for your use case, for instance, if you want to allow spaces around bold text without breaking the formatting, or if you're working in an environment where users don't think carefully about whitespace. It's a JavaScript package, so it works in Node.js projects and can also be embedded directly in web pages. The README doesn't go into detail about edge cases or why you might prefer this approach over standard markdown, but the core idea is straightforward: a more lenient parser for making text italic and bold.
A markdown-it plugin that relaxes markdown's emphasis rules so bold and italic markers work even with spaces around them.
Mainly JavaScript. The stack also includes JavaScript, markdown-it, Node.js.
Dormant — no commits in 2+ years (last push 2016-04-19).
Setup difficulty is rated easy, with roughly 5min to a first successful run.
Mainly developer.
This repo across BitVibe Labs
double-check against the repo, no cap.