Skip to content

Commit

Permalink
Fix doc format (#483)
Browse files Browse the repository at this point in the history
  • Loading branch information
shibd authored Jan 5, 2025
1 parent a8bef37 commit 4a3d8e9
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
3 changes: 3 additions & 0 deletions sync.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 4a3d8e9

Please sign in to comment.