தலைப்பு

பத்தியைத் தலைப்பாக மாற்றி அதன் நிலையை அமைக்கிறது. கருவிப்பட்டையில் தலைப்பை இயக்கி H1 முதல் H6 வரை தேர்ந்தெடுக்கவும்; அல்லது வெற்றுப் பத்தியில் # முதல் ###### வரை உள்ளிட்டு அதன் பின் Space ஐ அழுத்தவும்.

தலைப்பு தனி தொகுதி வகையல்ல; அது பத்தியில் சேமிக்கப்படும் ஒரு பண்புக்கூறு. தலைப்பை மீண்டும் அழுத்தினால் சாதாரணப் பத்தியாக மாறுவதால், உடல் அமைப்பை வைத்துக்கொண்டு நிலையை மட்டும் மாற்றலாம்.

சிறகுகள்
அடிப்படை எழுத்துருஇடமாற்றம்
HTMLதொகுப்பி ஏற்றப்படுகிறது…
JSONnabi-treeதொகுப்பி ஏற்றப்படுகிறது…
நிறுவு
npm install nabi-note
நிரல்
import {
  createNabiWith, mountSurface, mountToolbar, mountContextToolbar,
  mountHints, watchSettle, headingWing, bulletListWing, mountViewTools,
} from 'nabi-note'

const selected = [
  headingWing,
  bulletListWing,
]
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()))
ts
const selected = wings().use('h').build()