Giter Site home page Giter Site logo

kiranparajuli589 / htmlmark Goto Github PK

View Code? Open in Web Editor NEW
14.0 14.0 0.0 3.75 MB

A very lightweight Markdown Parser ✨

Home Page: https://kiranparajuli589.github.io/htmlmark/

License: GNU General Public License v3.0

JavaScript 99.36% Shell 0.64%
hacktoberfest hacktoberfest2023 javascript lexer markdown nodejs parser

htmlmark's Introduction

Hi, I'm Kiran Parajuli 👋 👨‍💻

Software Developer, QA, VueJs, Django

About me

I'm a software developer with experience as a senior quality assurance engineer. My specialties include Python, PHP, and NodeJS for backend work and database management. I'm also skilled in VueJs for creating sophisticated web designs.

I take great pride in my attention to detail and commitment to delivering high-quality results. When I'm not coding, I enjoy playing guitar and listening to music to stay inspired.

I'm always eager to collaborate with others and help bring their visions to life. Let's connect and explore how we can work together to achieve your goals.

  • 🔭 I’m currently studying
  • 🌱 I’m currently learning better problem-solving techniques
  • 👯 I’m looking to collaborate on RentShare
  • 💬 Ask me about Software QA Automation, VueJs and Django
  • 📫 How to reach me: LinkedIn
  • 😄 Pronouns: He/His
  • ⚡ Fun fact: I often wear headphones without listening to anything
  • 📝 Resume

htmlmark's People

Contributors

dependabot[bot] avatar kiranparajuli589 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

htmlmark's Issues

[feat] title attribute support for link and image

A [link](http://example.com).

![Image](Icon-pictures.png "icon")

> Markdown uses email-style
characters for blockquoting.
>
> Multiple paragraphs need to be prepended individually.

Most inline <abbr title="Hypertext Markup Language">HTML</abbr> tags are supported.

should be parsed as

<p>A <a href="http://example.com">link</a>.</p>

<p><img alt="Image" title="icon" src="Icon-pictures.png" /></p>

<blockquote>
<p>Markdown uses email-style characters for blockquoting.</p>
<p>Multiple paragraphs need to be prepended individually.</p>
</blockquote>

<p>Most inline <abbr title="Hypertext Markup Language">HTML</abbr> tags are supported.</p>

[feat] line breaks

Paragraphs are separated 
by a blank line.

Two spaces at the end of a line  
produce a line break.

should be parsed as

<p>Paragraphs are separated
by a blank line.</p>

<p>Two spaces at the end of a line<br />
produce a line break.</p>

[BUG] List item parsing

Describe the bug
paragraphs should not be inside the list item content

Additional context

Bullet lists nested within numbered list:

  1. fruits
     * apple
     * banana
  2. vegetables
     - carrot
     - broccoli

should be parsed as

<p>Bullet lists nested within numbered list:</p>

<ol>
  <li>fruits <ul>
      <li>apple</li>
      <li>banana</li>
  </ul></li>
  <li>vegetables <ul>
      <li>carrot</li>
      <li>broccoli</li>
  </ul></li>
</ol>

[feat] add tests from common mark

Is your feature request related to a problem? Please describe.
CommonMark is some sort of standardization for markdown. Currently we only have some unit tests whose coverage is low.

Describe the solution you'd like
https://spec.commonmark.org/ provides some cases. It would be nice to integrate those fixtures in our tests and run in the CI

enhance paragraph parsing

Is your feature request related to a problem? Please describe.
Currently, we check for every known token, and if any of them does not match, then declare it as a paragraph.

Describe the solution you'd like
Some sort of test mechanism should be implemented for paragraphs to parse consecutive lines at the same time

Describe alternatives you've considered
Build a paragraph test function analyzing how it is working now.

Additional context
Parsing time should be taken in mind.

[feat] `_` identifier for italics

Text attributes _italic_, **bold**, `monospace`.

should be parsed as

<p>Text attributes <em>italic</em>, <strong>bold</strong>, <code>monospace</code>.</p>

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.