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

Markdown from a file #9

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

tlarevo
Copy link

@tlarevo tlarevo commented Nov 28, 2022

Hi, got a requirement to load markdown content from a file and couldn't find functionality to do so, thought of adding it.

While exploring an approach to implement the functionality, came across the Earmark.from_file/1 but realised that I would need to do substantial logic change/addition to accommodate it. Therefore, decided to implement the functionality by reading the file contents and piping it to the existing logic.

Also added unit tests for all the scenarios previously mentioned.

Additionally, added the compiler suggested, Enum.map_join as a replacement to separate Enum.map and Enum.join

Hope this feature would be useful to others and I'm happy to know your suggestions and do the necessary amendments. 😃

Thank you for the awesome Surface library. 👏 💐 💙

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.

1 participant