gtlsgamr / shiny

An html to GemText converter written in C. πŸ’Ž

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

SHINY - An HTML to GemText converter πŸ’Ž

NOTE: This is a work in progress.

Compile using any C compiler. Then input html using stdin.

gcc shiny.c
cat html_file.html | ./a.out > output.gmi

At this point, the program assumes a few things:

  • You will not nest tags on the same line.
  • You will start anchor tag attributes with the href attribute:
     <a href=""..... > </a>   <---- Correct    
     <a class="" href=""..... > </a>   <---- Correct    
    
  • One type of tag on one line, if possible.
  • Try to keep
    tags on seperate lines.
  • Try to avoid tags inline if possible.
  • You will enter html without meta data. It might work with it, but try to input only the stuff that you want to convert and nothing else.

About

An html to GemText converter written in C. πŸ’Ž

License:GNU General Public License v3.0


Languages

Language:C 100.0%