Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cleaning md to strip links and other markup #1

Merged
merged 2 commits into from
Aug 19, 2024

Conversation

mairin
Copy link
Contributor

@mairin mairin commented Aug 17, 2024

This exactly matches the context in
instructlab/taxonomy#1255 per commit a4eca8b - this will improve the effectiveness of this knowledge node.

This exactly matches the context in
instructlab/taxonomy#1255 per commit a4eca8b -
this will improve the effectiveness of this knowledge node.

Signed-off-by: Máirín Duffy <[email protected]>
@mairin
Copy link
Contributor Author

mairin commented Aug 17, 2024

Noting the workflow I used to create this md:

  1. Via @erictherobot 's wikipedia-markdown-generator tool (MIT-licensed), I ran:
> python3 wiki-to-md.py Swifties
  1. This generated a Swifties.md in the md_output directory of my wikipedia-markdown-generator checkout dir.

  2. I used this python script I wrote to wrap the lines at 72 (so there's 8 characters free to indent for the yaml context blocks): https://github.com/mairin/wrap/tree/main Here is how I used it:

> python3 wrap.py md_output/Swifties.md > Swifties.wrapped.md
  1. I renamed Swifties.wrapped.md appropriately and filed this pr.

there were extra newlines in my last version of this. changed my wrap
script to strip these out.

Signed-off-by: Máirín Duffy <[email protected]>
Copy link

@bjhargrave bjhargrave left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Much better with the wiki links removed.

@juliadenham
Copy link
Owner

This is amazing!! Thanks Mo!!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants