trapias / TrelloExport

Chrome extension to export Trello boards to Excel, Markdown, HTML, OPML and CSV
MIT License
127 stars 28 forks source link

HTML exporting worng charset #83

Open alansenairj opened 3 years ago

alansenairj commented 3 years ago

Output HTML export file function is writing down all ISO 8559-1 chars instead UTF-8. I'm using Ubunt 21.04, both Chrome and Firefox browsers. Page loads fine but export result file is poluted by substituitions.

trapias commented 3 years ago

@alansenairj can you show me an example?

alansenairj commented 3 years ago

Yes. The problem is markdown conversion when someone put code on Trello card. Export Results:

image

Original card:

image

Markdown text:

Comandos Básicos do GIT

Iniciar um repositório

Esse comando irá transformar um diretório simples em um repositório git.

$ git init

Git config

É possível alterar algumas configurações do git como o editor, paginador, usuário, email, seguem alguns exemplos:

Para alterar as configurações para todos os repositórios utilizar a flag --global após a opção config

Mudando o paginador do comando "less" para o comando "cat" $ git config core-pager cat

Mudando as informações de usuário

alansenairj commented 3 years ago

II'm using python to convert markdown export instead HTML.

trapias commented 3 years ago

@alansenairj will try to understand what I can do; if you open the resulting HTML in the browser isn't it properly shown? Eventually tell us what're doing with python, maybe the trick can help somebody else :-)

alansenairj commented 3 years ago

Yes. It shows wrong caracters cause conversion from markdown are not working well. When some one put a code on Trello markdown uses ''' for exemple. Parsing code from a card using some markdown quotation to represent that code is doing wrong output as I showed on last post. I'm doing a conversion from your export in markdown format and then using python module for better results. It is a simple code.

import markdown file = input(" digite o nome do arquivo" ) markdown.markdownFromFile(input= file, output='IAC.html' )

Using this module I'm get rid of ISO 8559-1 chars and codes apears more cleaner but I need to mount HTML tags to represent yaml identation.

image

HTML export cannot deal with codes written in Trello cards. That's the problem.