all repos — tg2md @ main

converter from telegram json to jekyll md

ab90cef7
fix try except pass thingy.
la-ninpre leobrekalini@gmail.com
Sat, 17 Jul 2021 12:49:03 +0300
5e15940d
add short variants of command line flags
la-ninpre leobrekalini@gmail.com
Fri, 16 Jul 2021 23:38:19 +0300
856df0ec
add support for other file types (to be improved)

currently images that were sent as files are supported, but their files
land in `files` directory.

text file and additional image used for test are stored as symlinks now,
because i don't want them to consume too much space.
la-ninpre leobrekalini@gmail.com
Wed, 14 Jul 2021 19:35:12 +0300
c1aea08b
add testcase for utf-8 strings
la-ninpre leobrekalini@gmail.com
Mon, 12 Jul 2021 13:21:46 +0300
43c88a3c
Merge pull request #2 from progxaker/main

Add UTF-8 support
Lev Brekalov 57688959+la-ninpre@users.noreply.github.com
Mon, 12 Jul 2021 13:20:27 +0300
ed3ce881
update readme

oops, forgot to change name of script there
la-ninpre leobrekalini@gmail.com
Thu, 10 Dec 2020 20:28:18 +0300
4c57d96e
add argparse

and do some refactoring
la-ninpre leobrekalini@gmail.com
Thu, 10 Dec 2020 20:09:50 +0300
63d6cfec
remove generated files
la-ninpre leobrekalini@gmail.com
Thu, 10 Dec 2020 20:08:59 +0300
48d5e233
make a rename

notice repo name also changed
la-ninpre leobrekalini@gmail.com
Thu, 26 Nov 2020 23:56:43 +0300
e4f357e6
add license
la-ninpre leobrekalini@gmail.com
Tue, 17 Nov 2020 14:36:56 +0300
4bb3aff5
add readme

Some raw and crappy documentation.
la-ninpre leobrekalini@gmail.com
Tue, 17 Nov 2020 14:24:57 +0300
2d26d28c
fix formatted text parsing

earlier, situations when there were strings like 'bold\ntext\n' that
needed to be treated as bold text were converted in a wrong way (e.g.
like '**bold\ntext\n**', which is breaking markup because of newline
characters before closing asterisks), but now it's kind of fixed.

also there's now support for emails and <pre> blocks.
la-ninpre leobrekalini@gmail.com
Mon, 16 Nov 2020 19:45:19 +0300
767dc7f6
add tests

i've found some issues with formatted text, this could be seen in output
(which is not included now). there are some complications with parsing
newline characters, but i'll fix it later.

also script is now usable like command-line application. you can specify
the directory in which source files are located.

to make some tests you need to run
$ python parse.py tests

this will create directory tests/formatted_posts, where markdown posts
will be populated.

if directory is not specified, it assumes that script is in the source
    folder. if needed json file could not be found, it exits with code
    1.
la-ninpre leobrekalini@gmail.com
Thu, 12 Nov 2020 22:38:08 +0300
c11899c3
add option to reassign directories for media

now it's done through a variables photo_dir and media_dir, these should
be filled in before running and they are intended to fit your specific
setup. e.g. mine uses /assets folder for such file storage.
la-ninpre leobrekalini@gmail.com
Thu, 12 Nov 2020 02:03:03 +0300
36c95ea2
add raw parser

handles:
  - photo
  - text with bold, italic, underlined, stroke style and with links.
  - audio files

not handles:
  - tags
  - replies
  - forwarded messages
la-ninpre leobrekalini@gmail.com
Wed, 11 Nov 2020 02:40:27 +0300
59ad206e
Add UTF-8 support
Eduard Mielieshkin acronised68@gmail.com
Fri, 09 Jul 2021 12:37:42 +0300