இணைப்பு
எழுத்தைத் தேர்ந்தெடுத்து அதற்கு முகவரியை இணைக்கவும். எழுத்தைத் தேர்ந்தெடுக்காமல் முகவரியை உள்ளிட்டால் முகவரியே இணைப்பு உரையாகச் சேரும்; http:// அல்லது https:// முகவரியை உள்ளிட்டு Space அல்லது Enter அழுத்தினாலும் இணைப்பாக மாறும்.
இணைப்பில் http:, https:, மேலும் . அல்லது / இல் தொடங்கும் அதே தளப் பாதைகள் மட்டுமே சேமிக்கப்படும். javascript: அல்லது //example.com போல தோற்றம் தெளிவாக அறிய முடியாத முகவரிகள் மறுக்கப்படும். பதிவேற்றம் உருவாக்கிய இணைப்பு கோப்புத் தகவலையும் சேமிப்பதால், சாதாரண இணைப்புபோல் நேரடியாக உருவாக்க முடியாது.
npm install nabi-noteimport {
createNabiWith, mountSurface, mountToolbar, mountContextToolbar,
mountHints, watchSettle, subscriptWing, highlightWing, linkWing,
mountViewTools,
} from 'nabi-note'
const selected = [
subscriptWing,
highlightWing,
linkWing,
]
const { nabi, registry } = createNabiWith(selected)
const root = document.querySelector('.nabi')!
const content = document.querySelector('.nabi-content')!
// The locale also sets the direction — Arabic and Urdu run right to left
mountSurface({ nabi, registry, root: content, locale: 'ta' })
const settle = watchSettle(document, { surface: content })
const shared = { nabi, registry, surface: content, settle, locale: 'ta' }
const toolbar = mountToolbar({ ...shared, root: document.querySelector('#toolbar')! })
const context = mountContextToolbar({ ...shared, root: document.querySelector('#context')! })
mountHints({ toolbar, context, root, surface: content })
// The preview and fullscreen buttons — they stand their own box at the end of the row
mountViewTools({ ...shared, root, container: document.querySelector('#toolbar')! })
// on every change — hook up your own code here
// nabi.onChange(() => user_callback(nabi.getHtml()))const selected = wings().use('a').build()CSS பாணிகள்
சாதாரண இணைப்பை .nabi-content a மூலமும், இணைப்பு கோப்பை .nabi-content a[data-nabi-file] மூலமும் தனித்தனியாக வடிவமைக்கலாம்.
.article-body a:not([data-nabi-file]) {
color: var(--nabi-accent);
text-decoration-thickness: .08em;
text-underline-offset: .16em;
}
.article-body a[data-nabi-file] {
display: inline-flex;
gap: .35em;
padding: .25em .55em;
background: var(--nabi-soft);
}இணைப்பு கோப்பின் ::before, ::after கோப்பு சின்னம் மற்றும் நீட்டிப்பைக் காட்டப் பயன்படுவதால், அவற்றின் content ஐ மாற்றாமலோ நீக்காமலோ இருப்பது நல்லது.