Jakub Sokołowski
b9fe921681
rename module to github.com/status-im/markdown
...
This resolves a conflict we have due to MatterBridge
using the exact same makrdown package in different verison.
Signed-off-by: Jakub Sokołowski <jakub@status.im>
2020-02-10 17:46:14 +01:00
Andrea Maria Piana
af599402d0
Stripped down version of markdown
2019-11-13 12:43:44 +01:00
Krzysztof Kowalczyk
38900631f0
move test data to .tests files
2019-02-02 22:33:23 -08:00
Krzysztof Kowalczyk
685ba67482
remove execRecoverableTestSuite
2019-02-02 00:17:14 -08:00
Krzysztof Kowalczyk
2e45a08a2a
make tests work on windows by normalizing newlines
2018-04-15 22:26:04 -07:00
Krzysztof Kowalczyk
242d66580e
complete refactor
2018-01-28 00:50:21 -08:00
Krzysztof Kowalczyk
84fa04bf9d
less boilerplate
2018-01-27 20:51:43 -08:00
Krzysztof Kowalczyk
9e163b32d3
update docs
2018-01-27 19:45:55 -08:00
Krzysztof Kowalczyk
dfa474f00a
move parser into its own package
2018-01-27 18:50:27 -08:00
Krzysztof Kowalczyk
8641ad4e76
rename html.HTMLFlags => html.Flags
2018-01-27 18:39:03 -08:00
Krzysztof Kowalczyk
f15e5d05a9
rename HTMLRenderer => Renderer
2018-01-27 18:33:03 -08:00
Krzysztof Kowalczyk
956d0f875c
rename htmlrenderer.HTMLRendererParameters => htmlrenderer.Options
2018-01-27 18:29:51 -08:00
Krzysztof Kowalczyk
7b88bd6d02
move html renderer to htmlrenderer package
2018-01-27 18:22:11 -08:00
Krzysztof Kowalczyk
da9aa552d2
tweak comments; reduce comment boilerplate
2018-01-26 14:21:26 -08:00
Krzysztof Kowalczyk
892d084af3
rework the api a bit
2018-01-26 00:11:58 -08:00
Krzysztof Kowalczyk
8bb670d63d
rename Markdown to Parser
2018-01-25 23:16:34 -08:00
Krzysztof Kowalczyk
a6d62294de
speed up go test; move the permutation-based crash test to a separate tool and speed it up by doing concurrency better
2018-01-25 16:19:07 -08:00
Krzysztof Kowalczyk
78bcb2da26
update links
2018-01-25 13:06:17 -08:00
Krzysztof Kowalczyk
7557d13318
change package name
2018-01-25 13:01:19 -08:00
Pierre Neidhardt
2501229ba6
Rename Markdown()->Run() and Processor->Markdown
2017-06-05 21:42:05 +01: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
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
Pierre Neidhardt
02da1dfe9d
Factor Smartypants to HTML
...
Smartypants is HTML-specific.
There is no need to run Smartypants from `Render()`.
This simplifies extensions built upon the HTML renderer.
2016-08-10 09:58:33 +05:30
Vytautas Šaltenis
e054c962e7
More lint: markdown.go and ripples to other files
2016-07-27 21:28:41 +03:00
Dmitri Shuralyov
2560c5f148
Fix issue in fenced code block pre-processing.
...
Forwardport changes from #280 .
Fixes #279 .
2016-07-15 17:03:02 -04:00
Dmitri Shuralyov
a41899bbac
v2: Only include test helpers inside test package.
2016-07-01 11:47:39 -07:00