மேற்கோள்

மேற்கோள் உரை அல்லது தனி சூழலை பல பத்திகளாக இணைக்கிறது. வெற்றுப் பத்தியில் > க்குப் பின்னர் Space ஐ அழுத்தவும், அல்லது தேர்ந்தெடுத்த பத்திகளை கருவிப்பட்டையில் மேற்கோளாக மாற்றவும்.

மேற்கோளில் சாதாரணப் பத்திகளுடன் பட்டியல், படம் போன்ற தொகுதிகளையும் சேர்க்கலாம். அதே வரம்பை மீண்டும் மாற்றினால் வெளிப்புறப் பத்திகளாகப் பிரியும்.

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

const selected = [
  quoteWing,
  detailsWing,
  dividerWing,
]
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('quote').build()

CSS பாணிகள்

மேற்கோளின் எல்லை மற்றும் இடைவெளியை .nabi-content blockquote மூலம் மாற்றலாம்.

css
.article-body blockquote {
  margin-inline: 0;
  padding: .25rem 1rem;
  border-inline-start: 4px solid var(--nabi-accent);
  color: var(--nabi-muted);
  background: color-mix(in srgb, var(--nabi-soft) 72%, transparent);
}

blockquote உள்ள பத்தி அமைப்பை அப்படியே வைத்துக்கொண்டு, வெளிப்புற இடைவெளி, எல்லை, நிறம் போன்ற தோற்றத்தை மட்டும் மாற்றுங்கள்.