showdown
leerob.io
Our great sponsors
showdown | leerob.io | |
---|---|---|
14 | 59 | |
13,858 | 6,793 | |
0.8% | - | |
0.0 | 8.7 | |
7 days ago | 7 days ago | |
JavaScript | MDX | |
MIT License | GNU General Public License v3.0 or later |
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.
showdown
-
How do I display a markdown table on a website with go backend?
So you're going to need a Markdown parser that produces HTML. But there's a question of where is the data coming from and where you you want to process it? If it's going to be all on the frontend like a text editor, use a JS library for it (a quick google search produces ShowdownJS)
-
Docusaurus first impression and stealing like an open sourcer
Previously, I was required to implement the markdown support manually which meant that the use of public libraries was prohibited. My tool could only support limited styling elements such as header1, header2, links, bold and italics, but now I can finally let my tool have a full markdown support by using Showdown.
-
I made a full-stack portfolio site using Next.js and Tailwind!
The first two ages are very heavy on content so I decided to use markdown and tailwind’s typography plugin for styling. I also used showdown to fetch the markdown and turn it into HTML. The code for the above can be found on the site’s GitHub repository.
-
Markdown-Tag: Add Markdown to any HTML using a <md> tag
It looks like it uses showdown as the engine.
-
A Colorful Textarea
Adding syntax highlighting to an input field can be a hard task. supports neither styling of individual characters or words, nor HTML tags within itself, there is no fully supported native solution for that. Most editors work with
contenteditable
to actually render a fully marked up code snippet and let the user edit its content. This requires a lot of work to get it accessible (as in restore all the native functions of a textarea) and still adds a lot of complexity.
If you don't want that and are just looking for a quick, dead-simple solution: Here's how to colorize a textarea.Solution
The trick is to separate the input element from the displayed one. We can't color the content of a textarea, but we can make it invisible and replace it with marked up content. This works with monospaced fonts and fonts with a uniform width across normal, bold and italic characters. I'm using this for code and markdown, so that's perfectly acceptable for me. We also need to be careful to match the dimensions of the textarea exactly while only using font-relative units like
em
, to ensure that the highlight element scales well with the invisible textarea. The cursor is still in the textarea's context, while the text itself is rendered in the highlight element. We want to match every character of the textarea to match the highlighted one on a pixel-perfect basis.I also need to auto-resize my textarea. Since textareas usually scroll vertically, that would mess up the position matching with the highlight element. Auto-resizing seems like a graceful workaround to me.
The highlghting itself would work with every code parser. I'm using highlight.js to convert markdown to syntax-highlighted HTML. I listen for content changes in the textarea and parse new rendered code on every input. To counter the worst performance hits, I'll just use
requestAnimationFrame
. Debouncing isn't an option here, because the user would only see what they've written after they've finished typing. That'd be very poor UX.Demo
Note that this example also displays the rendered Markdown in a separate element. I'll use the change listener that I already have to splice in a Markdown renderer: Showdown.
Pros
- as accessible as a textarea
- is a progressively enhanced feature
- can be styled exactly to your needs
- dead simple solution compared to a rich text editor
Cons
- has performance issues with large texts (as do textareas in general)
- works only with monospaced fonts
- works only with auto-sizing textareas
This article was written in a textarea :)
-
Browser extension - Integrate your features securely
In order to transform the Markdown to HTLM, we can use a generator such as showdown. It's really easy to use:
-
CSS style to make HTML look like raw markdown
or are you asking general technical question about markdown handling? there are existing solution which already do two-way convertion, including showdown and reddit comment box, the secret to make them "live" is to update both fields on key-down even
leerob.io
-
Upgrade my blog to Next.js 13.4 with MDX, Prisma, Tailwindcss, Planetscale, Giscus and Contentlayer
Shen Lu's portfolio, inspired by leerob.io.
-
Next.js 13.4.8
This might be due to implementation. The same pattern on my site (without the entry/exit animation) is working as expected. http://leerob.io/
- Could you please suggest some Next.js project source codes, preferably v12 or fewer, that I can use to learn from?
-
I just redesigned two of my websites inspired by Lee Rob
So, while looking for websites to get inspired on, I found Lee Rob's website and I was amazed by how minimal and beautiful it is!
-
My portfolio built with Next.js, TypeScript, Firebase, and Vercel ✨
You've forked the site from leerob.io, no wonder it seemed to familiar lol
-
I made a full-stack portfolio site using Next.js and Tailwind!
The initial idea I had in my mind was a very minimal site with a minimal navbar that would look more like a sidebar, and the design would be somewhat inspired by leerob’s site. Apart from this, I also wanted my site to display some cool dynamic and real-time data like my Spotify data, my blog posts fetched from dev.to and a guestbook where people could leave messages for me!
-
Flutter Portfolio Suggestions
Here's mine, though still very unstable especially on mobile, design inspired by Leerob.
-
Moving my personal website from Gatsby to Next.js
Lee Robinson
-
How I created my personal website.
In terms of design inspiration, I took a lot of it from Lee Robinson and Delba's websites. They provide good material to anyone interested in learning about web development. Visit their blogs and YouTube channels for great educational content on different technologies used in the field.
-
Impact of React Suspense used with Nextjs on SEO?
I recently checked the source code of leerob.io. It made me very curious about how the homepage has been almost getting the perfect Light House score.
What are some alternatives?
nextjs-notion-starter-kit - Deploy your own Notion-powered website in minutes with Next.js and Vercel.
remarkable - Markdown parser, done right. Commonmark support, extensions, syntax plugins, high speed - all in one. Gulp and metalsmith plugins available. Used by Facebook, Docusaurus and many others! Use https://github.com/breakdance/breakdance for HTML-to-markdown conversion. Use https://github.com/jonschlinkert/markdown-toc to generate a table of contents.
HULL - 💀 Headless Shopify Starter – powered by Next.js + Sanity.io
Markdig - A fast, powerful, CommonMark compliant, extensible Markdown processor for .NET
js-xss - Sanitize untrusted HTML (to prevent XSS) with a configuration specified by a Whitelist
react-syntax-highlighter - syntax highlighting component for react with prismjs or highlightjs ast using inline styles
next-themes - Perfect Next.js dark mode in 2 lines of code. Support System preference and any other theme with no flashing
fontsource - Self-host Open Source fonts in neatly bundled NPM packages.
tailwind-nextjs-starter-blog - This is a Next.js, Tailwind CSS blogging starter template. Comes out of the box configured with the latest technologies to make technical writing a breeze. Easily configurable and customizable. Perfect as a replacement to existing Jekyll and Hugo individual blogs.
markdown-raw - CSS style to make HTML look like raw markdown
next-plugin-preact - Next.js plugin for preact X
react-code-blocks - React code blocks and code snippet components