isolate
Wraps text in a first-strong isolate, so a name, a coordinate or a number
with a unit keeps its own order inside a right-to-left sentence and cannot
pull the neighbouring punctuation or words around. Text with no strong
letter, such as a coordinate, reads left to right. Empty text stays empty.
Any isolate control already in text is removed first, so a value that
holds a closing control cannot end its own isolation early, and a value
isolated before is not wrapped twice.
This is a function exported by @mapcairn/core, checked against version 0.2.0.
Signature
import { isolate } from "@mapcairn/core";
function isolate(text: string): string;
Parameters
text(string)
Returns
string