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

fix: removing code block in MarkdownConverter #3960

Merged
merged 14 commits into from
Jan 27, 2023
Merged

Conversation

TuanaCelik
Copy link
Contributor

@TuanaCelik TuanaCelik commented Jan 26, 2023

Related Issues

Proposed Changes:

change the line html = markdown(markdown_text) to html = markdown(markdown_text, extensions=["fenced_code"]) as suggested in the issue discussion

Checklist

  • I have read the contributors guidelines and the code of conduct
  • I have updated the related issue with new insights and changes
  • I added tests that demonstrate the correct behavior of the change
  • I've used one of the conventional commit types for my PR title: fix:, feat:, build:, chore:, ci:, docs:, style:, refactor:, perf:, test:.
  • I documented my code
  • I ran pre-commit hooks and fixed any issue

@TuanaCelik TuanaCelik added type:bug Something isn't working topic:file_converter labels Jan 26, 2023
@TuanaCelik TuanaCelik requested a review from a team as a code owner January 26, 2023 15:46
@TuanaCelik TuanaCelik requested review from julian-risch and bogdankostic and removed request for a team January 26, 2023 15:46
@TuanaCelik
Copy link
Contributor Author

Sorry @bogdankostic , I made the change by branching off fro the branch that is still in an open PR: #3953 which is why it looks like there are more changes that needed.. I think it should appear normally once that branch is merged? Or should I create a new PR and close this?

@bogdankostic
Copy link
Contributor

Should be okay, let's wait for the CI to become green in #3953 and then merge.

@julian-risch julian-risch removed their request for review January 26, 2023 15:54
@TuanaCelik
Copy link
Contributor Author

@bogdankostic pausing this until tomorrow to add a test first

@TuanaCelik
Copy link
Contributor Author

@bogdankostic there's a test ready. As the default is set to 'True' it's a bit odd because it means I'm testing the scenarion where the code block is not removed

Copy link
Contributor

@bogdankostic bogdankostic left a comment

Choose a reason for hiding this comment

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

Looking good to me, thanks Tuana :)

@TuanaCelik TuanaCelik merged commit 9331213 into main Jan 27, 2023
@TuanaCelik TuanaCelik deleted the fix-removing-code-block branch January 27, 2023 14:25
@ZanSara ZanSara added this to the 1.13.1 milestone Jan 31, 2023
ZanSara pushed a commit that referenced this pull request Feb 2, 2023
* first attempt to add frontmatter of markdown to the metadata

* remove bug fix

* running black and pre-commit

* moving the import line

* adding a test

* adding pydoc

* fix to removing code blocks in markdown converter

* adding a test

* fixing a test

* improving tests

* adding language to code block
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
topic:file_converter type:bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

bug: MarkdownConverter not removing code blocks
3 participants