The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.
TypeScript aialternativeauthdatabasedenoembeddingsexamplefirebasenextjsoauth2pgvectorpostgispostgrespostgresqlpostgrestrealtimesupabasevectorswebsockets
import { describe, expect, it } from 'vitest'
import { mdToPlainText } from './md-to-plain-text'
describe('mdToPlainText', () => {
it('strips code spans from a real title', () => {
expect(mdToPlainText('Handling errors in `supabase-js`')).toBe('Handling errors in supabase-js')
})
it('keeps underscores in extension names', () => {
expect(mdToPlainText('pg_cron: Schedule Recurring Jobs')).toBe(
'pg_cron: Schedule Recurring Jobs'
)
})
})