Bayanin ƙasa ​

Haɗa ƙarin bayani da lambobi a rubutu da jerin bayanai a ƙarshen takarda.

Shigar da rubutu ta maɓallin bayanin ƙasa a sandar kayan aiki don saka bayani a wurin sigina. Idan an zaɓi rubutu, ana saka shi a ƙarshen zaɓin ba tare da maye gurbin rubutun ba. Ba a adana lambobi; ana ba su kai tsaye bisa jerin takarda.

Danna lamba a rubutu don gyara bayaninta a layin kaddarori. Yi amfani da kayan gogewa, ko danna Backspace ko Delete sau biyu kusa da bayanin don zaɓarsa sannan a goge shi. Jerin da ke ƙasa na karantawa ne kawai kuma yana ɓacewa idan babu bayanin ƙasa.

A samfotin da shafukan da aka wallafa tare da viewer, kai sigina kan lamba, danna ko taɓa ta don karanta bayanin. Ana karɓar layi ɗaya na rubutu marar tsari kawai, a nuna shi da haruffan sans serif masu girman 0.875 na girman asalin rubutun. Ana nuna HTML a matsayin rubutu yadda yake.

Fuka-fukai
Nau’in rubutu na asaliTazara
HTMLAna loda edita…
JSONnabi-treeAna loda edita…
Sanya
npm install nabi-note
Lambar shirin
import {
  createLocale, createNabiWith, mountSurface, mountToolbar,
  mountContextToolbar, mountHints, watchSettle, highlightWing, linkWing,
  footnoteWing, mountViewTools,
} from 'nabi-note'

const selected = [
  highlightWing,
  linkWing,
  footnoteWing,
]
const locale = createLocale('ha')
const { nabi, registry } = createNabiWith(selected, { locale })

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 })

const settle = watchSettle(document, { surface: content })
const shared = { nabi, registry, surface: content, settle, locale }
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()))

// Call from your language selector. Content and editing history stay intact.
// locale.setLocale('ko')
ts
const selected = wings().use('fn').build()