Weave Code
Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message

Commonmark Sup Sub Extensions Laravel Package

ows/commonmark-sup-sub-extensions

Add superscript and subscript support to your CommonMark markdown with this lightweight PHP extension. It registers ^text^ and text style syntax so you can render scientific notation, footnotes, and chemical formulas cleanly in Laravel or any CommonMark-powered app.

Deep Wiki
Context7

Product Decisions This Supports

  • Content formatting capability (feature scope): Enables superscript and subscript rendering in Markdown-authored content — footnotes/markers, chemical formulas (H₂O), exponents and units (m², 10⁻³), trademark and legal notations (™, ®, †), ordinal suffixes, and version or citation styles. This is a formatting completeness decision, not a platform decision.
  • Build vs. buy: The capability is ~50–150 lines of a League CommonMark inline parser plus delimiter configuration. Buying gives you spec-compliant delimiter-run handling and upstream compatibility with league/commonmark; building gives you control over syntax, licensing, and conflict behavior. The effort delta is small enough that licensing or conflict issues should tip the decision toward building rather than the reverse.
  • Scope call on the Markdown pipeline: Whether the product supports a documented Markdown dialect (with an explicit extension list) or an ad-hoc one. Adopting any third-party extension is an implicit commitment to that dialect across editors, previews, exports, and API renderers.
  • Buyer/segment decisions: Relevant only if your users author technical, scientific, or academic content. For general business content (blog posts, help center articles, transactional email), this is low-value surface area that still carries dependency and content-regression risk.
  • Roadmap prioritization: This is a "nice-to-have, low-differentiation" item. It competes with higher-leverage Markdown work (tables, footnotes, syntax highlighting, math/KaTeX, sanitization hardening) and should be sequenced behind it.
  • Integration surface decision: Where the extension gets wired in — Str::markdown() options at call sites, a shared renderer service/singleton, or a Blade/Markdown component — since inconsistent wiring creates divergent rendering between preview, storage, and export.

When to Consider This Package

Consider it when:

  • You already run league/commonmark (directly or via Laravel's Str::markdown()) and have a shared, centralized renderer you can extend in one place.
  • Your content genuinely needs sup/sub — scientific, engineering, medical, academic, or legal copy — and authors are already typing ^/~ conventions.
  • Your legal posture tolerates GPL-3.0 in a dependency (internal-only tooling, GPL-compatible distribution, or a service where you're comfortable with the analysis). This is the primary gate — a copyleft license on a rendering micro-library is an odd fit for most commercial Laravel products and will often be rejected by dependency policy regardless of technical merit.
  • You can pin a version and accept single-maintainer risk for a package with ~10 stars and no visible repository.

Look elsewhere (or build in-house) when:

  • Your product is proprietary and distributed, or your org maintains an MIT/Apache-only dependency policy — the GPL-3.0 license alone likely ends the evaluation.
  • You need math or chemistry rendering properly: <sup>/<sub> is a typographic approximation, not semantic math. Prefer MathML/KaTeX/MathJax for formulas and equations.
  • Delimiter collisions matter: ~ interacts with strikethrough (~~…~~) and tildes in URLs/paths, and ^ appears in code, regexes, and caret notation. If your corpus contains these, enabling the extension is a content-rendering change to existing documents and needs a regression audit, not just a feature flag.
  • You only need it in one or two templates — a scoped helper or a small custom inline parser is cheaper than a dependency and avoids the license question entirely.
  • Accessibility is a hard requirement: screen-reader behavior for <sup>/<sub> is inconsistent, and pronunciation of footnote markers or exponents often needs explicit accessible text. Neither this package nor CommonMark solves that.
  • You want a supported, actively maintained dependency with a public issue tracker, security policy, and release cadence — none of which are verifiable here. Metadata is also suspect (unknown repository, a release dated in the future), so treat the package as unvetted until provenance is confirmed.

How to Pitch It (Stakeholders)

Executive summary: This is a small plugin for our Markdown renderer that lets authors write superscript and subscript text — think H₂O, m², or footnote markers — instead of pasting raw HTML. Technically it's low effort and low risk to try; the real blockers are non-technical: it's licensed GPL-3.0 (a copyleft license most commercial products avoid in dependencies), it's a very small project with unclear maintenance and provenance, and turning it on can change how already-published content renders.

For engineering: It plugs into the existing league/commonmark pipeline behind our shared renderer, so wiring is a one-line extension registration plus tests. Cost is genuinely small — which is also why the fallback is credible: a scoped custom inline parser, or an authoring-level workaround (explicit HTML or Unicode super/subscript characters), covers most of the need without a GPL dependency.

Recommendation to leadership: Do not adopt as-is. First confirm the license position with legal and verify the package's provenance and maintenance. If either is unfavorable — which is likely — fund a short in-house implementation behind the same renderer interface, ship it dark behind a feature flag, and validate against a sample of existing content for delimiter collisions and accessibility before enabling by default. Treat the underlying user need as a P3 formatting enhancement, not a roadmap driver, and only pursue it if we're already investing in the Markdown pipeline for higher-value extensions.

Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
uni-method/symfony-lib
tacticmedia/scim-server-bundle
neika-ai/symfony-bundle
mattleads/agent-publishing-bundle
glavweb/framework-bundle
glavweb/extra-bundle
glavweb/api-bundle
glavweb/admin-bundle
adachsoft/api-version-bundle
elsayed85/laravel-api-exceptions
ouhssini/laravel-demo-mode
daworks/ncloud-outbound-mailer-driver
gp247/cms
ignibyte/aic-gates
nexa-merchant/blog
novasa/laravel-language-center
opencage/geocode
adolfoholzer/parameters
livenetworks/ln-starter
shitoudev/permissionmanager