Skip to content

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