Skip to content

Instantly share code, notes, and snippets.

Avatar

Javier JJ jjarava

View GitHub Profile
View keybase.md

Keybase proof

I hereby claim:

  • I am jjarava on github.
  • I am jjarava (https://keybase.io/jjarava) on keybase.
  • I have a public key ASDmgwA6onoBKyB9BHAgz1Cz8C880cWaqXfLeTVE3TxmGQo

To claim this, I am signing this object:

@jjarava
jjarava / mdless-sample-test.md
Created Sep 7, 2015
Example file for `mdless` issue #2 (https://github.com/ttscoff/mdless/issues/2) - Don't you love the fact you can't add attachments to Issues in GitHub??
View mdless-sample-test.md

Testing mdless sample file:

Here are 4 examples of a code snippet inserted in differente ways.

Snippet 1: - Using triple back quotes and specifying the language (ref: http://brettterpstra.com/2015/08/24/write-better-markdown/#fenced-code-blocks)

<script type="text/javascript">
(function() {
    document.cookie = "COOKIE_NAME=" + encodeURIComponent(Math.random()) + ";path=/;domain=DOMAIN-HERE";
@jjarava
jjarava / Marky-bug-report.md
Last active Aug 29, 2015
Bug Report - Marky Choking in &amp; characters in HTML fragments
View Marky-bug-report.md

Bug Report - Marky Choking in & characters in HTML fragments

Summary

When Marky is fed an HTML fragment that includes the & (ampersand) char, it will choke/stop processing.

Bug Details

While testing my @workflowhq workflow [Emulate Drafts Web Capture Keeping Links][1], I noticed that if the clipboard has an "&" char, the MMD output I get is truncated there. Further testing validated that if the html fragment that is fed to Marky via the "HTML" option (http://heckyesmarkdown.com/go/?html={fragment}&read=1&md=1) contains an ampersand processing stops there.

Test Case

You can’t perform that action at this time.