Skip to Content
  • Website
Codsen
  • Home
  • Open Source
  • Articles
  • About

backOpen Source→string-dashes→Examples

Permalink to Table of ContentsTable of Contents

  • Quick Take
  • An ambiguous hyphen is left alone
  • Convert one em dash into an entity
  • Disable the dash conversion
  • Convert a letter range into an en dash
  • Convert a number range into an en dash
  • Convert a maths minus into an en dash
  • Report the index offsets through a callback
  • Supply the dash value separately
↑ back to top

Permalink to Quick TakeQuick Take

↑ back to top

Permalink to An ambiguous hyphen is left aloneAn ambiguous hyphen is left alone

↑ back to top

Permalink to Convert one em dash into an entityConvert one em dash into an entity

↑ back to top

Permalink to Disable the dash conversionDisable the dash conversion

↑ back to top

Permalink to Convert a letter range into an en dashConvert a letter range into an en dash

↑ back to top

Permalink to Convert a number range into an en dashConvert a number range into an en dash

↑ back to top

Permalink to Convert a maths minus into an en dashConvert a maths minus into an en dash

↑ back to top

Permalink to Report the index offsets through a callbackReport the index offsets through a callback

↑ back to top

Permalink to Supply the dash value separatelySupply the dash value separately

↑ back to top
back 

Copyright

All rights reserved © Roy Revelt 2026
All our open source packages are under MIT licenceopens in a new tab

Activities

🐛 See a bug? Raise an issueopens in a new tab
💘 Check out the Indiewebopens in a new tab and Libera manifestoopens in a new tab