From 6f1ce0b0c26adf23afe15800d4dcd41f238e9500 Mon Sep 17 00:00:00 2001 From: Baodi Shi Date: Sun, 5 Jan 2025 16:52:54 +0800 Subject: [PATCH] Fix doc format --- .../snowflake-streaming-sink/v0.1.0/snowflake-streaming.md | 2 +- sync.js | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/connectors/snowflake-streaming-sink/v0.1.0/snowflake-streaming.md b/connectors/snowflake-streaming-sink/v0.1.0/snowflake-streaming.md index b18e62a6..ed4dc7fc 100644 --- a/connectors/snowflake-streaming-sink/v0.1.0/snowflake-streaming.md +++ b/connectors/snowflake-streaming-sink/v0.1.0/snowflake-streaming.md @@ -171,7 +171,7 @@ You can also choose to use a variety of other tools to create a connector: for [StreamNative Cloud Doc](https://docs.streamnative.io/docs/connector-create#create-a-built-in-connector). - [Function Mesh](https://functionmesh.io/docs/connectors/run-connector): The docker image can be found at the beginning of the document. - {% /callout %} +{% /callout %} ### 3. Send messages to the topic diff --git a/sync.js b/sync.js index 79795513..320d84cc 100644 --- a/sync.js +++ b/sync.js @@ -290,6 +290,9 @@ async function syncDoc(tag, pathPrefix, fileName, organization, repository, proj const imageDir = path.join("images", "connectors", "sync"); for (let line of md.content.split("\n")) { + if (line.trimStart().startsWith("{% /callout %}")) { + line = line.trimStart(); + } const imagePattern = /!\[.*?\]\((.+?)\)/g; // Match any image with optional alt text let match; while ((match = imagePattern.exec(line)) !== null) {