Closed subpublic closed 3 years ago
Hi
Is there a way to add options, passed to anchorme.js ?
Say I'd like to do <Anchorme options={{truncate: 6}}>text</Anchorme>
<Anchorme options={{truncate: 6}}>text</Anchorme>
Hi, I added option to truncate the text by adding truncate prop.
truncate
If you want to do some other custom transformation with the text, you can use custom link component and transform text to match your needs.
Hi
Is there a way to add options, passed to anchorme.js ?
Say I'd like to do
<Anchorme options={{truncate: 6}}>text</Anchorme>