Dmitri Shuralyov
fc997ac2ba
Travis: Run gofmt -s, go vet, go test -race, add Go 1.6.
...
Also make tip a fast-finish allowed failure. That way, if CI fails on
tip due to a temporary issue with tip, it will not break build status.
However, it's still possible to see tip build status by looking at CI
details page.
Do not run go vet with Go 1.4 or older since it's not included in the
standard library, and it's no longer available in external standard
library.
Add godoc badge to README.md.
2016-04-28 22:47:04 -07:00
Vytautas Šaltenis
151efb040f
Merge pull request #250 from tomkwok/master
...
Fix regession: index out of range panic in reference link (#172 , #173 )
2016-04-21 11:09:30 +03:00
Tom Kwok
69f51afe42
Add test for issue 172
2016-04-03 21:08:32 +08:00
Tom Kwok
232d06cf99
Fix regression: index out of range panic in reference link ( #172 , #173 )
2016-04-02 22:13:43 +08:00
Vytautas Šaltenis
b43df972fb
Merge pull request #247 from shawnps/patch-1
...
fix typo
2016-03-16 09:29:03 +02:00
Shawn Smith
1d94959fea
fix typo
2016-03-16 15:21:50 +09:00
Vytautas Šaltenis
006144af03
Merge pull request #234 from shawnps/gofmt
...
gofmt -s
2016-01-24 13:12:56 +02:00
shawnps
2ee51ae2a0
gofmt -s
2016-01-22 16:04:49 -08:00
Vytautas Šaltenis
c8875c0ed4
Merge pull request #229 from russross/issue-228
...
Fix bug with gathering list item lines
2015-12-30 17:42:28 +02:00
Vytautas Šaltenis
fc6236fc55
Fix bug with gathering list item lines
...
Instead of swallowing an empty line and then reintroducing it back again
in certain cases, collect the list item body in an unaltered form and
let the recursive parsing call sort things out.
Fixes issue #228 .
2015-12-26 20:18:22 +02:00
Vytautas Šaltenis
b8031576aa
Merge pull request #225 from russross/issue-165
...
Implement support for CDATA section
2015-12-25 13:14:44 +02:00
Vytautas Šaltenis
ee63ffd3e2
Fix initialisms in function names
2015-12-25 13:04:56 +02:00
Vytautas Šaltenis
f5ac2ddf7a
Add a few more CDATA tests
2015-12-16 20:53:40 +02:00
Vytautas Šaltenis
594d923645
Convert constant variables into consts
2015-12-16 20:51:44 +02:00
Vytautas Šaltenis
05a79218ed
Implement support for CDATA section
...
Fixes #165 .
2015-12-14 20:57:40 +02:00
Vytautas Šaltenis
d18b67ae0a
Add more tests for emphasised text
...
Including EXTENSION_NO_INTRA_EMPHASIS. These nail down a fix for #178
that was a side effect of cc3cc10
.
2015-12-12 19:18:59 +02:00
Vytautas Šaltenis
3c4a488ada
Merge pull request #224 from russross/issue-180
...
Fix for #180
2015-12-11 20:25:12 +02:00
Vytautas Šaltenis
fc740701cf
Cosmetics: fix comment placement and import order
2015-12-10 21:03:21 +02:00
Vytautas Šaltenis
bcd6dd8711
Don't require the input to end with a newline
...
Technically, not ending a line with a newline is wrong, but this blunder
is so pervasive that we have no other choice but to live with it.
Fixes #180 .
2015-12-10 20:52:47 +02:00
Vytautas Šaltenis
e3cbadc5c9
Bump version
2015-12-06 19:26:14 +02:00
Vytautas Šaltenis
ce3ffa70a0
Merge pull request #222 from icco/parens
...
Allow parentheses inside of links
2015-12-06 18:44:17 +02:00
Nat Welch
1bb1fa9e95
remove check that brace is > 0
2015-12-05 02:00:36 +00:00
Nat Welch
c1d4a77100
Fix comment formatting and spelling
2015-12-05 02:00:23 +00:00
Nat Welch
45f5800b75
Get tests to pass
2015-11-29 00:08:48 +00:00
Nat Welch
1622f8f312
Apply @miekg's patch
...
From 99ce7134f6
.patch
2015-11-26 22:11:25 +00:00
Vytautas Šaltenis
300106c228
Merge pull request #219 from FooSoft/master
...
Adding a link to Md2Vim.
2015-11-17 09:23:12 +02:00
Alex Yatskov
7d22880556
Adding a link to Md2Vim.
2015-11-17 12:58:23 +09:00
Dmitri Shuralyov
0b647d0506
Use more idiomatic form for set of strings.
...
This is a better style for a set, since each value can only be present
or absent.
With bool as value type, each value may be absent, or true or false. It
also uses slightly more memory.
2015-11-09 21:18:55 -08:00
Vytautas Šaltenis
18432fc942
Add a few missing HTML5 block tags
...
Closes #197 .
2015-11-08 21:34:44 +02:00
Vytautas Šaltenis
f1ce82cb01
Sort block tag list alphabetically
2015-11-08 21:33:20 +02:00
Vytautas Šaltenis
510be64de0
Merge pull request #216 from russross/issue-194
...
Fix footnote following an exclamation point
2015-11-04 21:40:57 +02:00
Vytautas Šaltenis
f21f067121
Merge pull request #215 from russross/issue-193
...
Fix nested footnotes
2015-11-04 21:37:52 +02:00
Vytautas Šaltenis
c5943e0685
Reformat a dustball of ifs into a switch statement
2015-11-04 21:32:53 +02:00
Vytautas Šaltenis
a58274acef
Minor style fix: declare ref first in a loop
2015-11-04 21:07:39 +02:00
Vytautas Šaltenis
ca8c21a297
Fix footnote following an exclamation point
...
Link parser interpreted the sequence "![^foo]" as an image, but if
footnote extension is enabled, it's quite clear that it should be
interpreted as a footnote following something with an exclamation point
at the end.
Closes #194 .
2015-11-03 20:52:36 +02:00
Vytautas Šaltenis
c29209fcda
Add String() method to reference struct
2015-11-02 20:24:34 +02:00
Vytautas Šaltenis
9e68ff937b
Fix nested footnotes
...
This is both nasty and neat at the same time. All the code could handle
nested footnotes just fine, the only place that was not working was the
final loop that printed the list. The loop was in a range form, which
couldn't account for another footnote being inserted while processing
existing ones. Changing the loop to the iterative form solves that.
Closes #193 .
2015-11-02 20:17:46 +02:00
Vytautas Šaltenis
660c9fd283
Add <style> tag to a list of recognized block tags
...
Closes #182 .
2015-11-01 12:36:02 +02:00
Vytautas Šaltenis
9c9c590f7e
Merge pull request #211 from russross/issue-122
...
Fix issue 122: fenced code blocks inside blockquotes
2015-11-01 09:44:04 +02:00
Vytautas Šaltenis
4193e8665a
Drop misleading comment and turn func into method
...
* The comment is no longer true.
* Other functions similar to terminateBlockquote() are methods, so make
this one a method too.
2015-11-01 09:32:30 +02:00
Vytautas Šaltenis
6c330778b2
Merge pull request #214 from russross/issue-122-test-readability
...
Make test values more readable, add additional test cases.
2015-11-01 09:25:47 +02:00
Dmitri Shuralyov
e93d8f1624
Make test values more readable, add additional test cases.
2015-10-31 14:35:21 -07:00
Vytautas Šaltenis
ceb8293c34
Merge pull request #212 from nitoyon/readme
...
README: Add 'Definition lists' and 'Footnotes'
2015-10-30 20:37:43 +02:00
nitoyon
6a7bd0d6e9
README: Add 'Definition lists' and 'Footnotes'
2015-10-31 00:50:10 +09:00
Vytautas Šaltenis
15eb452ae4
Fix fenced code processing inside blockquotes
...
Add a call to fenced code block processor inside the loop that's
responsible for collecting the quoted lines. Grok all the fenced code
block as a part of the quoted text.
Closes #122 .
2015-10-29 20:28:29 +02:00
Vytautas Šaltenis
607f2ceb8a
Move complex conditional to a helper func
2015-10-29 20:28:29 +02:00
Vytautas Šaltenis
133788657b
Refix fenced code blocks w/o preceding blank lines
...
Change approach at fixing #45 : don't patch input markdown at preprocess
pass, instead improve special case detection when parsing paragraphs.
Leave the fenced code block detection in the preprocess pass though,
it's been put to another use since then, to suppress tab expansion
inside code blocks.
2015-10-29 20:28:16 +02:00
Vytautas Šaltenis
d4ee3ea08b
Simplify return value
2015-10-28 21:21:51 +02:00
Vytautas Šaltenis
4b26653fe0
Fix broken test and add test for HTML_SMARTYPANTS_DASHES
2015-10-27 20:21:08 +02:00
Vytautas Šaltenis
6712f32cfd
Merge pull request #190 from anthonyfok/add-flag-for-smart-dashes
...
Add HTML_SMARTYPANTS_DASHES for toggling smart dashes
2015-10-27 20:08:54 +02:00