Socket
Book a DemoInstallSign in
Socket

rosetta-ruby

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

rosetta-ruby

0.0.0
bundlerRubygems
Version published
Maintainers
1
Created
Source

rosetta

A Markdown to HTML translator.

[April 15th 2021] This project is a work in progress.

I've recently taken an interest in the syntax and semantics of programming languages, and would like to explore some of the practices involved in writing one. Having said that, I don't want to dive into writing a full featured programming language for various reasons, the primary one being that I don't have any use cases where an existing language could not trivially satisfy my programming needs.

With that in mind I'm going to start smaller with a translator that takes a Markdown source file and outputs HTML. In an ideal world I'd use it as part of another project, but regardless of whether I get that far I'm going to enjoy digging into the challenges involved.

My initial plan is to try and parse Markdown source into an abstract syntax tree of some sort, and then convert that AST into HTML. I'll start with a subset of GitHub flavoured Markdown; I use GitHub's Markdown on a near daily basis, and if I want to use this elsewhere I probably won't have need for a full Markdown feature set.

Markdown syntax

Rosetta will support the following features. For examples of what these look like in use, visit the GitHub Markdown Guide. I'll mark each item as completed once Rosetta can convert them to its AST representation.

Block level

  • Headers from 1-6
  • Numbered and bulleted lists, as well as sub lists
  • Quotes
  • Standalone code blocks
  • Block URL links
  • Block image embedding

Inline

  • Bold, italic, strikethrough
  • Inline URL links
  • Inline code blocks
  • Inline image embedding

Possible future syntax

  • Superscript
  • Subscript
  • Code block language types

FAQs

Package last updated on 30 Aug 2021

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.