Skip to content
New issue

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

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

Already on GitHub? # to your account

Render Markdown for Event Descriptions #126

Closed
neozenith opened this issue Jun 26, 2024 · 4 comments · Fixed by #136
Closed

Render Markdown for Event Descriptions #126

neozenith opened this issue Jun 26, 2024 · 4 comments · Fixed by #136
Labels
bug good first issue Ideal for someone wanting to get started with this repo help wanted

Comments

@neozenith
Copy link
Member

Meetup has enabled rich descriptions which look like a markdown format. Could we get this content rendered from MD format to HTML format?
Screenshot 2024-06-27 at 5 45 16 AM

@neozenith neozenith added bug help wanted good first issue Ideal for someone wanting to get started with this repo labels Jun 26, 2024
@ParthJohri
Copy link
Contributor

Hi @neozenith,

I have some suggestions for this issue:-

  1. We can create a function to parse the markdown text and use regex expression to change popular markdown to html, however that could be a cumbersome person.

  2. Using an external api like https://apyhub.com/utility/md-content-html to fetch the html formatted data, but this would come around costly if used for a number of requests.

  3. Creating our custom backend api on python or NodeJs use libraries to convert the md file to html file.

Would like to discuss as to what approach would be more appropriate over here?

@neozenith
Copy link
Member Author

The content, we fetch daily when we do static site builds and the final product is already known. So calling out to APIs is not approproate.

I would prefer looking at prior art as a NodeJS library such as the following that could be incorporated into a build step.

@ParthJohri
Copy link
Contributor

Greetings @neozenith,

I made use of showdown Nodejs library to format the text, here is the screenshot with the result, if this looks good, I can create a PR for it.
Screenshot 2024-07-22 at 16 03 27

@neozenith
Copy link
Member Author

Yeah looks great. Feel free to open a PR

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
bug good first issue Ideal for someone wanting to get started with this repo help wanted
Projects
Status: Done
2 participants