Git Product home page Git Product logo

txt-to-html-converter's Introduction

Hi there ๐Ÿ‘‹

I'm Marco, a third year Computer Science student at Ontario Tech Univeristy.

On here, you can find some of my previous projects from Seneca College. As well as some of my older projects from high school, which first made me interested in pursing a career in this field.

- ๐Ÿ”ญ Iโ€™m currently working on learning Git, Unix, and Discrete Math.
- ๐ŸŒฑ Iโ€™m learning Mobile app development.
- ๐Ÿ˜„ Pronouns: He/Him
- โšก Fun fact: History buff and video game enthusiast.

Other than the Python code and Java code I have developed from high school, all other code is not to be copied pasted to solve homework. Since it violates academic integrity. Because it's impossible to stop people from looking at my answers, I encourage you to analyze the code and understand how it works before defaulting on the option of copy paste.

I can be conatcted through these routes:

Personal Email: [email protected]

School Email: [email protected]

You can also check out my blog at https://dev.to/pasqua101

txt-to-html-converter's People

Contributors

dshaw0004 avatar namatuzio avatar pasqua101 avatar rook4715 avatar

Watchers

 avatar

txt-to-html-converter's Issues

Commenting

When looking at the source code, I felt that the comments made it a little cluttered.
Commenting is good for explaining why a program does something a certain way and documenting what a function does, but there's no need to explain what every single line of code is doing.

Parsing Bold Markdown Text to strong HTML tag

I am going to add a feature that can detect the bold markdown tag (**word**) and convert it to the <strong> tag in HTML. This will be a simple addition to the parse_md function that I already have.

HTML generation

From the release 0.1 specifications:
"10. every blank line should be considered a paragraph limit"

Input:

This is paragraph 1.
This is part of paragraph 1.

This is paragraph 2.
This is part of paragraph 2.

Expected output:

<p>This is paragraph 1. This is part of paragraph 1.</p>
<p>This is paragraph 2. This is part of paragraph 2.</p>

Output:

<p>This is paragraph 1.</p>
<p>This is part of paragraph 1.</p>
<br><p>This is paragraph 2.</p>
<p>This is part of paragraph 2.</p>

The release 0.1 spec doesn't mention using <br> tags between paragraphs, so no need for them.

Add Support for Code Blocks

I would like to add in the feature for my program to detect the use of `` for code blocks in Markdown, as well as the use of 3 backticks for a fenced code block. When the backtick is detected, it will rend the line as <code> .... text ... </code>

Clarity on running program in README

The README doesn't explain how to install/build the txt_to_html program locally.

How I understood the README:
Step 1: Install Python locally
Step 2: Add Python to environment variables
Step 3: Run the program using txt_to_html filename.txt or txt_to_html foldername

(When and how was the program built?)

(For what it's worth, I ran the program by downloading the .py file and running it with python txt_to_html.py filename.txt)

Sidebar Rendering Prototype

Plans for working on this feature:

  1. Create argument to take in a file containing a python dictionary
  2. Dictionary would have to take in 2 keys and 2 respective values, 1 key is the label , "home", and the other is the URL , "/". Basically links to other pages that can be generated, as the program can take in several files at a time.
  3. Have code generate side bar at the top of the HTML template before the body of the HTML is generated
  • Code generates the table of contents in a list with the a tag

Add .md file support & markdown link parsing

I'd like to add the ability for the program to convert .md files to .html files.
Additionally, any links in the .md file following the markdown link syntax will be converted to <a href='...'> ... </a> tags.
The way .txt files are processed will be unchanged.

Code Cleanup

Doing some general cleanup to my program. Mainly just splitting up the main txt_to_html.py file into separate files, so it isn't as cluttered.

Update Testers

Since all the code has been moved into a new file. The import statements in the testers, must be updated.

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.