Skip to content

Question about removing extraneous markdown characters from output #55

@00krishna

Description

@00krishna

@gpoore thanks again for creating codebraid with your collaborators. After the answers to my initial issues, things are working pretty well.

I was just wondering if you had a suggestion for this small issue. I am using codebraid to generate documents--with code and plots--for a Hugo blog. The markdown output from codebraid works very well, but there are some additional tags or notations in the markdown files that should be removed before being sent to Hugo. For example, there are tags like:
::: exampleOutput, {.python .numberLines startFrom="1"}, {.richOutput}, and other similar notations.

Now I could write some simple text processing code and filter out these extra notations. But, I was wondering if you know any better ways to remove these notations? You certainly know all these tools better than I do. I am not sure if there are some options in codebraid to remove these extra notations. OR, perhaps I could use original pandoc itself to post-process the codebraid output and remove these notations?

I saw that you created that minimal example for the "Make the Docs" site, which is similar to Hugo. Did you find a good way to remove those extra notations in the markdown files before pushing those files to the "Make the Docs" content folders? Just wondering, and asking for advice. Thanks.

Metadata

Metadata

Assignees

No one assigned

    Labels

    discussionDiscussion requiring no code changes

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions