Vytautas Šaltenis
5a12bbca53
Drop race detector from Travis builds ( #474 )
...
We do not have a single go statement in Blackfriday code, -race does
nothing for us, but burn CPU cycles (and it hurts because we're hitting
timeouts on full test runs).
2018-08-19 14:08:23 +03:00
Vytautas Šaltenis
0e0e3095cb
Fix travis builds on v2: gofmt harder ( #470 )
2018-08-04 15:05:01 +03:00
Vytautas Šaltenis
e97f103314
Use the same .travis.yml on master and v2 ( #462 )
...
Use the same .travis.yml on master and v2
2018-08-04 14:45:05 +03:00
Liming Jin
670777b536
add NoopenerLinks ( #437 )
2018-05-26 10:57:26 +03:00
Emil Melnikov
f04854434e
Add heading offset option to HTML renderer ( #421 )
...
Setting HTMLRendererParameters.HeadingLevelOffset to L changes
default HTML heading levels from hX to h(X+L).
2018-05-24 21:52:48 +03:00
Rebecca Turner
1bb1d0171c
Fixed HTML entity regex ( #453 )
...
The old regex missed a lot of HTML entities, like long references
(from 6-character entites like ≈ to the somewhat rarer
∳) as well as numeric references
(decimal e.g. Ӓ or hex e.g. 𓫶). This fixes that.
2018-05-24 21:32:58 +03:00
Nick Galbreath
8c0d4cca94
Fix for issue russross/blackfriday#239 ( #372 )
...
Issue russross/blackfriday#239 codeblock inside list.
2018-05-24 21:29:34 +03:00
Nathan Glenn
3420fef033
Add full info string in fenced code blocks ( #449 )
...
* Add full info string in fenced code blocks
According to common mark, the info string for a fenced code block can be any
non-whitespace string, so adjust the code to read a full string instead of
just the syntax name.
Fixes #410 in v2.
* run go fmt
2018-04-28 13:25:38 +03:00
Kentaro Matsushita
6aeb241ce2
Add a reference for confluence wiki renderer in the README.md. ( #446 )
2018-04-26 21:51:23 +03:00
Mitchell Cohen
c455fd41c6
Fix consecutive lists of different kinds ( #443 )
...
* fixed consecutive lists
* used helper method and addressed flag setting
2018-03-20 21:50:35 +02:00
Vytautas Šaltenis
cfdcce5196
Merge pull request #436 from IainHaslam/v2
...
v2: Fix HTML5 by removing rel="footnote" which is invalid.
2018-02-25 11:23:46 +02:00
Iain Haslam
ee09303c1a
v2: Fix HTML5 by removing rel="footnote" which is invalid.
...
See #433 for an equivalent change on v1 branch.
2018-02-24 18:23:00 +00:00
Vas Sudanagunta
119f356b88
Fix broken link to v2 in README
2018-02-12 10:33:38 +02:00
Dmitri Shuralyov
187c33ff04
README: Update URL of LaTeX renderer. ( #389 )
...
It has moved from Bitbucket to GitHub.
Resolves #388 .
2017-09-05 13:08:19 -04:00
Vytautas Šaltenis
cadec560ec
Merge pull request #384 from bep/v2
...
Add Smartypants support for French Guillemets
2017-08-06 20:10:14 +03:00
Bjørn Erik Pedersen
3a1d515242
Add Smartypants support for French Guillemets
...
This is a port of the fix for #378 in v1.
Fixes #380
2017-08-02 21:42:14 +02:00
Vytautas Šaltenis
45820516bb
Unexport a bunch of constants private to HTML renderer ( #381 )
...
Unexport a bunch of constants private to HTML renderer
They were cluttering the documentation and are not useful otherwise.
Rearrange constants in descending dependencies order
2017-08-02 09:20:10 +03:00
Vytautas Šaltenis
e0df702112
Merge pull request #382 from russross/v2-final-docs-fixes
...
Several small documentation fixes
2017-08-01 23:01:04 +03:00
Vytautas Šaltenis
19913a1b76
Address feedback
2017-07-30 19:50:50 +03:00
Vytautas Šaltenis
d5487615af
Several small documentation fixes
2017-07-29 11:59:03 +03:00
Vytautas Šaltenis
f42ca5bf18
Merge pull request #377 from russross/v2-catch-up-readme
...
Catch up README with the latest changes in code
2017-07-26 21:43:53 +03:00
Vytautas Šaltenis
f86f06b532
Merge pull request #376 from russross/v2-improve-renderer-368
...
v2: improve Renderer and fix #368
2017-07-26 21:42:39 +03:00
Vytautas Šaltenis
427717f991
Use io.WriteString instead of w.Write([]byte(str))
2017-07-10 19:11:30 +03:00
Vytautas Šaltenis
257ccba98f
Catch up README with the latest changes in code
2017-07-09 16:27:38 +03:00
Vytautas Šaltenis
479920a987
Improve the Renderer interface
...
Improve Renderer to be less confusing. Fix documentation for it.
OmitContents flag got dropped along the way. First, it would fit poorly
into the new design and second, it's unclear how widely this feature is
used. But most importantly, it's trivial to roll your own with the v2
API: https://gist.github.com/rtfb/2693f6bfcc1760661e8d2fb832763a15
Fixes #368 .
2017-07-09 15:44:00 +03:00
Vytautas Šaltenis
70c446a327
Merge pull request #365 from Ambrevar/v2
...
Merge Parser into Processor
2017-06-09 19:18:05 +03:00
Pierre Neidhardt
2501229ba6
Rename Markdown()->Run() and Processor->Markdown
2017-06-05 21:42:05 +01:00
Pierre Neidhardt
a47518da29
[SQUASH] Doc update
2017-06-01 17:43:27 +01:00
Pierre Neidhardt
3cc9341a19
Merge Parser into Processor
2017-05-29 10:52:11 +02:00
Vytautas Šaltenis
e7910a813f
Merge pull request #327 from russross/readme-update
...
Update README for v2
2017-05-06 19:33:15 +03:00
Vytautas Šaltenis
af57319fac
Merge pull request #328 from russross/v2-functional-opts
...
Change the public interface to use functional options
2017-05-06 19:31:47 +03:00
Vytautas Šaltenis
41159b3874
Fix bad merge
2017-02-14 21:58:46 +02:00
Vytautas Šaltenis
a8c45a7349
Merge branch 'v2' into v2-functional-opts
2017-02-14 21:51:06 +02:00
Vytautas Šaltenis
5ebfae50aa
Merge pull request #331 from russross/v2-fix-180-again
...
Fix #180 again
2017-02-14 21:40:27 +02:00
Vytautas Šaltenis
b98e306853
Merge pull request #332 from russross/v2-rename-headers-to-headings
...
Fix all headings wrongly referred to as headers
2017-02-14 21:17:32 +02:00
Vytautas Šaltenis
747587a52d
Fix all headings wrongly referred to as headers
...
I've left test cases alone since can't lean on the compiler for
crosschecking there.
Fixes #330 .
2017-02-12 19:05:30 +02:00
Vytautas Šaltenis
7500a7e2ed
Fix #180 again
...
The check was introduced with d28de22
, when fixing #172 and #173 .
Then I removed it with bcd6dd8
when fixing #180
And then it was reintroduced with 232d06c
when fixing regression.
It seems that the check can be removed again. All these cases now have
tests (including the one from 69f51af
, which seems to have landed to v1
only, copying it here) and they all pass.
2017-02-12 17:57:51 +02:00
Vytautas Šaltenis
5e1065fa45
Fix blooper: remove dead code
2017-02-02 17:24:53 +02:00
Vytautas Šaltenis
ad7f7c56d5
Merge pull request #322 from russross/v2-perf-tweaks
...
V2 perf tweaks
2017-02-02 17:08:19 +02:00
Vytautas Šaltenis
e81d1d1138
Change the public interface to use functional options
...
Convert the most important Blackfriday's function, Markdown(), to accept
functional options (as per this Dave Cheney's post:
https://dave.cheney.net/2014/10/17/functional-options-for-friendly-apis )
2017-02-02 16:57:25 +02:00
Vytautas Šaltenis
d04a53c644
Merge branch 'v2' into v2-perf-tweaks
2017-02-02 12:00:48 +02:00
Vytautas Šaltenis
ea57e93666
Several fixes after code review
2017-02-02 11:54:10 +02:00
Vytautas Šaltenis
f805c775f5
HTTPS allthethings!
2017-01-27 12:13:59 +02:00
Vytautas Šaltenis
fb56a7e01e
Update README for v2
2017-01-26 13:30:06 +02:00
Vytautas Šaltenis
a4dd8ad4a6
Merge pull request #324 from russross/move-toc-to-html
...
Move TOC and OmitContents to HTML flags
2016-12-07 21:07:04 +02:00
Vytautas Šaltenis
3d1baecb3d
Merge pull request #323 from russross/ditch-skip-style
...
Ditch SkipStyle flag
2016-12-07 21:00:43 +02:00
Vytautas Šaltenis
9c4ef640b9
Move TOC and OmitContents to HTML flags
...
The root problem this commit fixes is the duplication of Extensions
field in HTMLRendererParameters. The duplication crept in there only to
support these two flags, so moving the flags solves the problem. They're
only used in renderer anyway.
Fixes #277 .
2016-11-24 21:48:48 +02:00
Vytautas Šaltenis
b61f73e4f9
Ditch SkipStyle flag
...
It's been broken since early 2014, which clearly demonstrates that
nobody uses it.
Fixes #252 .
2016-11-24 20:37:33 +02:00
Vytautas Šaltenis
120bb2fae1
Get rid of the preprocess stage
...
Yay!!
2016-11-10 21:49:58 +02:00
Vytautas Saltenis
22a3e5b744
Avoid calling bytes.Split() in appendLanguageAttr
...
This avoids some allocs.
2016-10-29 12:09:34 +03:00