Giter Club home page Giter Club logo

Comments (9)

lagleki avatar lagleki commented on September 9, 2024

The answer is to use in tg.js tg.sendMessage(channel.tgChatId, msg, {parse_mode: "Markdown"}); or whatever format you want.

from teleirc.

FruitieX avatar FruitieX commented on September 9, 2024

This would be neat as a parse as markdown config option, default can be on. Care to make a pull request? :)

from teleirc.

lagleki avatar lagleki commented on September 9, 2024

It appears that malformed markdown (like unclosed _ tags) can lead to errors while trying to send a message to Telegram.

So I now recommend using escaping html entities and using HTML markdown instead.

from teleirc.

FruitieX avatar FruitieX commented on September 9, 2024

Maybe we shouldn't support this as it can also be very confusing (and cause errors possibly as you say)

from teleirc.

FruitieX avatar FruitieX commented on September 9, 2024

Alternatively there should be a command on the IRC side such as !md parsed-markdown-here which is required as a prefix for parsing the message as markdown

from teleirc.

lagleki avatar lagleki commented on September 9, 2024

2016-05-07 14:40 GMT+03:00 Rasmus Eskola [email protected]:

Maybe we shouldn't support this as it can also be very confusing (and
cause errors possibly as you say)

For markdown let's abandon it, yes.
For HTML it seems fine once you escape special symbols.

You are receiving this because you authored the thread.
Reply to this email directly or view it on GitHub
#64 (comment)

from teleirc.

FruitieX avatar FruitieX commented on September 9, 2024

Think I'll close this then. Might do a markdown command at some point, as referenced from #29.

from teleirc.

lagleki avatar lagleki commented on September 9, 2024

What about HTML?

2016-05-07 15:00 GMT+03:00 Rasmus Eskola [email protected]:

Closed #64 #64.


You are receiving this because you authored the thread.
Reply to this email directly or view it on GitHub
#64 (comment)

from teleirc.

FruitieX avatar FruitieX commented on September 9, 2024

We can have that as a separate command as well IMHO. I wouldn't necessarily want it to parse IRC messages as anything else than plain text by default.

from teleirc.

Related Issues (20)

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.