Skip to content

Instantly share code, notes, and snippets.

@grifferz
Last active August 29, 2015 14:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save grifferz/77154b61812000f3e983 to your computer and use it in GitHub Desktop.
Save grifferz/77154b61812000f3e983 to your computer and use it in GitHub Desktop.
Representing IRC logs in markdown

Markdown and IRC

What's a good way to put IRC logs into Markdown?

Naive attempt

Split onto separate lines with blockquote (>):

what's a good way to put IRC logs into markdown?

e.g. https://gist.github.com/grifferz/77154b61812000f3e983

angle brackets are lost, and doesn't wrap very nicely

https://gist.githubusercontent.com/grifferz/77154b61812000f3e983/raw/cb738bcd7abcb77993f6591cb6d4ce3e858fee5a/irc%20log.md

-Enoch- 60 Minute Quote[5690 / 7.5 / grifferz]: That's a development I wouldn't have expected: ♺ @PiratePartyUK: Pirate Party Sweden takes over hosting PirateBay http://bit.ly/9H7hVt <dg> there goes any shred of legitimacy they might have barely had <alexjs> agreed, I will never trust the pirate bay again

replace <> with **** to make nicks bold?

https://gist.github.com/grifferz/77154b61812000f3e983

format it ias a table?

it as

Doesn't look awesome no, what's the target?#

to make it look awesome

Well that doesn't work at all. Markdown ate all the <>.

Bold instead of angle brackets

grifferz what's a good way to put IRC logs into markdown?

grifferz e.g. https://gist.github.com/grifferz/77154b61812000f3e983

grifferz angle brackets are lost, and doesn't wrap very nicely

grifferz https://gist.githubusercontent.com/grifferz/77154b61812000f3e983/raw/cb738bcd7abcb77993f6591cb6d4ce3e858fee5a/irc%20log.md

Enoch 60 Minute Quote[5690 / 7.5 / grifferz]: <tdobson> That's a development I wouldn't have expected: ♺ @PiratePartyUK: Pirate Party Sweden takes over hosting PirateBay http://bit.ly/9H7hVt <dg> there goes any shred of legitimacy they might have barely had <alexjs> agreed, I will never trust the pirate bay again

Paul replace <> with **** to make nicks bold?

grifferz https://gist.github.com/grifferz/77154b61812000f3e983

Dave2 format it ias a table?

Dave2 it as

Paul Doesn't look awesome no, what's the target?#

grifferz to make it look awesome

It doesn't look awesome, does it?

Tables?

Pointless Header
grifferz what's a good way to put IRC logs into markdown?
grifferz e.g. https://gist.github.com/grifferz/77154b61812000f3e983
grifferz angle brackets are lost, and doesn't wrap very nicely
grifferz https://gist.githubusercontent.com/grifferz/77154b61812000f3e983/raw/cb738bcd7abcb77993f6591cb6d4ce3e858fee5a/irc%20log.md
Enoch 60 Minute Quote[5690 / 7.5 / grifferz]: <tdobson> That's a development I wouldn't have expected: ♺ @PiratePartyUK: Pirate Party Sweden takes over hosting PirateBay http://bit.ly/9H7hVt <dg> there goes any shred of legitimacy they might have barely had <alexjs> agreed, I will never trust the pirate bay again
Paul replace <> with **** to make nicks bold?
grifferz https://gist.github.com/grifferz/77154b61812000f3e983
Dave2 format it ias a table?
Dave2 it as
Paul Doesn't look awesome no, what's the target?#
grifferz to make it look awesome

This is better but doesn't appear to work without the header row, and wrapping is odd.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment