Skip to content

Commit

Permalink
feat: adds ol rendering
Browse files Browse the repository at this point in the history
  • Loading branch information
akoenig committed Apr 14, 2024
1 parent 2d73324 commit be28da2
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
3 changes: 3 additions & 0 deletions app/components/workflow-detail-card.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,9 @@ function Instructions({ workflow }: Props) {
{children}
</Link>
),
ol: ({ node, children }) => (
<ol className="list-decimal list-outside px-8">{children}</ol>
),
code: ({ node, children, ...props }) => (
<InlineCode>{children}</InlineCode>
),
Expand Down
1 change: 1 addition & 0 deletions app/utils/workflows.server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ const __dirname = "./workflows";
const categoryDirectories = fs
.readdirSync(__dirname, { withFileTypes: true })
.filter((dirent) => dirent.isDirectory())
.filter((dirent) => !dirent.name.startsWith("."))
.map((dirent) => dirent.name);

const categories = categoryDirectories.map((categoryDirectory) => {
Expand Down

0 comments on commit be28da2

Please sign in to comment.