లింక్

వచనాన్ని ఎంచుకుని దానికి చిరునామాను జోడించండి. వచనం ఎంచుకోకుండా చిరునామా ఇస్తే, చిరునామానే లింక్ వచనంగా చేరుతుంది. http:// లేదా https:// చిరునామా టైప్ చేసి Space లేదా Enter నొక్కినా అది లింక్‌గా మారుతుంది.

లింక్‌లు http:, https:, అలాగే . లేదా /తో మొదలయ్యే అదే సైట్ మార్గాలనే నిల్వ చేస్తాయి. javascript: లేదా //example.com వంటి మూలం స్పష్టంగా తెలియని చిరునామాలు తిరస్కరించబడతాయి. అప్‌లోడ్ సృష్టించిన జోడింపు లింక్‌లు ఫైల్ సమాచారాన్నీ ఉంచుతాయి; వాటిని సాధారణ లింక్‌లా చేతితో సృష్టించలేరు.

వింగ్స్
ప్రాథమిక అక్షరరూపంఆఫ్‌సెట్
HTMLఎడిటర్ లోడ్ అవుతోంది…
JSONnabi-treeఎడిటర్ లోడ్ అవుతోంది…
ఇన్‌స్టాల్
npm install nabi-note
కోడ్
import {
  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: 'te' })

const settle = watchSettle(document, { surface: content })
const shared = { nabi, registry, surface: content, settle, locale: 'te' }
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()))
ts
const selected = wings().use('a').build()

CSS శైలులు

సాధారణ లింక్‌లకు .nabi-content a, జోడింపు లింక్‌లకు విడిగా .nabi-content a[data-nabi-file]తో శైలి ఇవ్వండి.

css
.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ను మార్చడం లేదా తొలగించడం మంచిది కాదు.