HI AI MEETING · Dev notes
We Expanded Notices Instead of Building a Separate Blog
Rather than build a separate blog, we added one more post kind to the notices feature already in operation. We expanded the existing notices table instead of adding a new table for posts, kept images in a separate table, edited with TipTap while storing Markdown, and chose not to accept raw HTML or SVG.
On 2026-10-24, we added the blog through a change spanning 49 files and 1,431 lines, excluding the dependency lock file. We did not start a separate blog system from scratch. Instead, we extended the notices feature already in operation so notices and blog posts could use one shared post system.
That meant we could keep the existing publication status, scheduling, publish windows, and admin flow. The new work was limited to distinguishing post kinds, adding a long-form editor and renderer, storing body images, and handling blog-specific public reads, validation, and metadata.
The notices feature already had much of what a blog needed
The site already used notices (/en/notices) to publish update news. Notices supported drafts, publication status, publication windows, and scheduled publishing.
A separate blog or external blogging service would have required us to recreate that flow elsewhere. We would also have needed to separately handle links to actual public meetings (/en/meetings/<id>) and the guide (/en/guide), as well as the same domain, language rules, and server rendering.
So we did not remove or duplicate notices. We expanded them into “posts (notices and blog).”
We added a post kind to the existing table instead of creating a new one
The migration added kind and author to the existing admin_notices table. We removed the old category constraint, then recreated it so each kind has its own allowed categories.
ALTER TABLE admin_notices
ADD COLUMN kind text NOT NULL DEFAULT 'notice',
ADD COLUMN author text NOT NULL DEFAULT '';
ALTER TABLE admin_notices DROP CONSTRAINT admin_notices_category_check;
ALTER TABLE admin_notices ADD CONSTRAINT admin_notices_category_check
CHECK (
(kind = 'notice' AND category IN ('feature', 'improvement', 'model_persona', 'pricing'))
OR (kind = 'blog' AND category IN ('guide', 'example', 'dev', 'ops'))
);
Because kind defaults to 'notice', existing notices remain notices without a separate conversion.
Using one table also lets blog posts use the existing public-read rules. The public screen checks three things before it reads a post:
- The status is
publishedand the post has a slug - The start time has passed, and there is no end time or it has not yet passed
- The publication date is today or earlier in Korean time
For example, a post marked as published with next Monday as its publication date appears neither in the list nor at its URL before that day. Notices already followed this rule, so we did not need a separate blog publication rule that could drift from the notice rule.
Validation handles rules that differ by post kind. A notice requires a 3–7-line body in each language and an English version. A blog post can have a body of up to 60,000 characters, and its English version is optional.
We also updated the body format during the migration. Existing notices treated one line as one paragraph, but a single line break does not create a paragraph in Markdown. The migration therefore changed each run of one or more line breaks into one blank line.
UPDATE admin_notices
SET body = regexp_replace(body, '(\r?\n)+', E'\n\n', 'g'),
body_en = regexp_replace(body_en, '(\r?\n)+', E'\n\n', 'g');
Existing [text](/path) links in notices were already valid Markdown and continue to render as they did before.
We edit with TipTap and store Markdown
The operator editor uses TipTap 3.31.4 and the official @tiptap/markdown extension. Passing contentType: 'markdown' while loading lets the extension read Markdown, and saving calls editor.getMarkdown() to retrieve it again.
We also added a “View source” mode so operators can edit the same post directly as Markdown.

We chose Markdown rather than HTML for storage for two reasons.
First, portability: repository draft files, the operator editor, and the public screen all read the same characters. Second, security: bodies are stored as Markdown, and the renderer does not include rehype-raw, so HTML in a body is not rendered.
The public renderer and editor do not support exactly the same syntax, however. The public renderer displays GFM tables and checklists. The editor registers only the default bundle (StarterKit), images, and the Markdown extension; it does not include table or task-list extensions.
Syntax the editor does not understand can be lost after rich-text editing. For that reason, our rule is to edit posts containing tables or checklists in source view. We did not separately verify whether a table remains intact after passing through rich-text editing.
We render with react-markdown + remark-gfm and do not render raw HTML
The public screen uses react-markdown 10.1.0 and remark-gfm 4.0.1. remark-gfm supports GitHub Flavored Markdown (GFM) tables, checklists, and strikethrough.
The actual code also handles images and the outer frame, but the relevant link and table handling is as follows:
<Markdown
remarkPlugins={[remarkGfm]}
components={{
a: ({ href, children }) => {
const target = href ?? '';
if (target.startsWith('/') && !target.startsWith('//')) return <Link href={target}>{children}</Link>;
return <a href={target} target="_blank" rel="noopener noreferrer">{children}</a>;
},
table: ({ children }) => <div className={styles.tableScroll}><table>{children}</table></div>,
}}
>
{markdown}
</Markdown>
The key detail is the plugin we did not add. By default, react-markdown does not render HTML inside a body; it treats it as text. Rendering HTML requires rehype-raw, and its README advises using that only in trusted environments. We did not add it.
As a result, even <script> written in a body does not run. It appears only as text. Link URLs also go through the default transform, leaving safe schemes such as http, https, and mailto, along with relative paths.

Links are handled by destination. Internal paths beginning with / use Next.js Link. External addresses open in a new window with noopener. Addresses beginning with // point to another site, so they are not treated as internal paths.
Wide tables sit inside a horizontal scroll container so a table does not make the full page slide sideways on a phone.
Body images accept only PNG, JPEG, and WebP
Images uploaded through the editor are stored in a separate post_images table. Format and size limits are enforced in the database, not only in application code.
CONSTRAINT post_images_mime_check CHECK (mime IN ('image/png', 'image/jpeg', 'image/webp')),
CONSTRAINT post_images_size_check CHECK (byte_length > 0 AND byte_length <= 1572864 AND byte_length = octet_length(bytes))
We accept only PNG, JPEG, and WebP files up to 1.5MiB (1,572,864 bytes). The server does not trust a filename extension or request header alone. It checks the first few bytes—the identifying signatures for PNG, JPEG, and WebP—to compare the declared format with the actual file.
We do not accept SVG. SVG is XML-based and can contain scripts. Allowing SVG uploads could create another route for scripts to enter a body. For the same reason we chose not to render raw HTML, we did not create that route.
Notices and blog posts share a frame and server rendering
Notices and blog posts use the same post frame and renderer. Only their URLs differ: /en/notices/<slug> and /en/blog/<slug>.
Both screens are rendered on the server, so the body is present in the first HTML. This follows the same principle as including a meeting’s full text in the first HTML.
We set one save rule for language versions. A blog post’s English title, body, and summary must either all be filled in or all be empty. This prevents partially translated posts from appearing on the English screen.
If a post has no English version, only its Korean URL is declared canonical. Visiting the English URL shows the Korean body but excludes it from search indexing with noindex. We also added the blog to the sitemap and the guidance file for AI search tools (llms.txt).
Related posts below an article show posts in the same category first, then fill remaining places with the newest posts, up to three in total. If few posts are published, fewer appear. Reading time on list cards is estimated at roughly 500 Korean characters per minute, excluding spaces.

The first four posts are imported as drafts, not published
Along with the feature change, we prepared four first-post drafts and a JSON file for import. Importing that JSON does not publish the posts.
- Pasting the import JSON into the admin screen brings in all four posts as drafts (
draft). - An operator opens each post in the editor, reads it, and revises it.
- A post becomes public under the conditions above only after its status is changed to
publishedand saved.
We retained the publication rules, scheduled publishing, and admin workflow from notices, then added the distinctions, editing, rendering, image handling, validation, and metadata that blog posts needed.