mh-ssg
markdown-it
mh-ssg | markdown-it | |
---|---|---|
13 | 55 | |
1 | 17,208 | |
- | 1.2% | |
0.0 | 8.5 | |
over 2 years ago | about 2 months ago | |
JavaScript | JavaScript | |
MIT License | MIT License |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
mh-ssg
-
Publishing my first package
This week, I've published my 1st package on npm - mh-ssg - a static site generator CLI.
-
Adding Continuous Integration to a Project
I also worked on another project, mh-ssg, and added tests to this project as well. I created unit tests for a function called processFolder(). This function accepts an input folder path, output folder path and stylesheet URL. I created two unit tests, one which tests when a valid input folder containing files is passed to the function and one which tests when a non-existent folder is passed to the function. The function logs a message to the console depending on how many files are saved in the output folder, so the tests I wrote tested for these console logs.
-
Add testing to SSG
For this lab, I picked Jest as the testing tool for mh-ssg. This is a popular Javascript testing framework thanks to its simplicity and ease of usage.
-
Adding Static Analysis Tools to SSG
To maintain the quality of source code, I added a formatter and a linter for my project.
-
Static Site Generator - Support static files
Throughout the previous week, I was exploring Docusaurus and found that they have a feature to support static files. I find this feature very useful for any static site generator since images, favicons, stylesheets, etc. are very common parts of a webpage. Therefore, I decided to add this feature in my tool.
-
Code Refactoring and Rebase
As new features are added to the tool, I realized that the logic is not clear anymore and some parts were duplicated, making it inefficient and hard to maintain. This time, I decided to focus on removing those duplications by moving the statements to the appropriate place and extracting function for reusability. All the refactoring was done through a single commit with the help of git rebase.
-
Working with git remote - approving new feature
Luke also implemented the same feature for my project. His code in general was good but I suggested some changes including separating modules and combining functions to remove code duplicates.
-
A different way of reviewing pull requests
After looking through my classmates' projects, I decided to work on Minh Hang's static site generator and filed an issue to her repo.
-
Merges and conflicts
In the last update, my friend - Dustin - helped to add Markdown as a valid input for my tool. Markdown syntaxes are different from HTML syntaxes and he has worked on converting some of them. This time I decided to add two more:
-
Collaboration and pull requests
I've been sending a lot of pull requests but this was actually my first time receiving one 😄 and Dustin was my first contributor. He also proposed to add Markdown support for my tool and to parse all the headings, bold, italics and link from markdown into the corresponding HTML tags. I scanned through the pull request and found some minor issues, including missing new feature in documentation and missing the handling of the output file name. We also had different opinions about the implementation of .txt file and .md file. However after discussion, we came to agreement and I approved his changes.
markdown-it
-
Creating excerpts in Astro
Parse it into HTML using markdown-it
-
Creating an Automated Profile README using Nodejs and GitHub Actions
We can easily use markdown-it, a markdown parser for rendering a mix of JavaScript and plain text into a markdown file. To get started, kindly create a new directory with the following file structure:
-
Construindo um Painel de Blog Dinâmico com Next.js
github.com/markdown-it/markdown-it - markdown biblioteca.
-
Is deep selector still needed?
Recently, I am using markdown-it. Due to the nature of Vue and virtual DOM. You cannot style style inside v-html with scoped style. The only solution for me is global css and deep selector. I choose the latter
-
Implementing collaborative docs
You could probably use markdown-it in your web app to create a notes program where Markdown is used. That tool has lot of plugins. I used it in a small project for myself to test it and it worked like a charm and you can style it so it looks modern. Nevertheless I do not remember if there is a plugin for collaborative writing so users can edit the same file simultaneously but if it does not exist, you can probably work that out by yourself.
-
dd
markdown-it - Markdown parser done right. Fast and easy to extend.
-
Render markdown from a string with Vue components instead of HTML tags
I don't quite get what you mean. I've used [markdown-it](https://github.com/markdown-it/markdown-it) and overwrite its render rule for images, so it returns an NuxtImg instead of an native img tag.
-
So here’s a stupid question: using the chat API, what’s the best way to deal with formatting the results for web?
I've been using markdown-it and highlight.js for code snippets, and so far it's been working pretty great straight out of the box without any other parsing or format prompting
-
Why I love Markdown
It then, gets compiled down to regular HTML by a markdown processor so that the browser can understand it and display it on the screen.
-
How to convert markdown to json in react js
Maybe Markdown It? link
What are some alternatives?
yargs - yargs the modern, pirate-themed successor to optimist.
marked - A markdown parser and compiler. Built for speed.
Docusaurus - Easy to maintain open source documentation websites.
remark - markdown processor powered by plugins part of the @unifiedjs collective
mini-ssg - MINI - A minimalist static site generator written in JS.
PEG.js - PEG.js: Parser generator for JavaScript
js-yaml - JavaScript YAML parser and dumper. Very fast.
nearley - 📜🔜🌲 Simple, fast, powerful parser toolkit for JavaScript.
docx-to-pdf-on-AWS-Lambda - Microsoft Word doc/docx to PDF conversion on AWS Lambda using Node.js
Jison - Bison in JavaScript.
strip-json-comments - Strip comments from JSON. Lets you use comments in your JSON files!
obsidian-pandoc - Pandoc document export plugin for Obsidian (https://obsidian.md)