Switch to commonmark 0.5.0
Reasons to switch:
* Supports the CommonMark[1] "standard"
* Fewer dependencies
* BSD 2-clause license
* Fast (claims 10-20 times faster than pegdown)
* Cleaner extension API than Pegdown
* No timeout limit required
Testing with Documentation/markdown.md:
| cold vm | hot vm |
+---------+--------|
prior | 2.29s | 279ms |
this | 1.64s | 139ms |
Testing with Chromium's botmap.md:
| cold vm | hot vm |
+---------+--------|
prior | 3.47s | 946ms |
this | 1.83s | 257ms |
Changes in Markdown from Pegdown:
* No <<double angle>> quotes (confused with HTML).
* No table captions (no [caption after table]).
* Table columns are same width (no multi-column spans).
* Smart quotes can no longer be disabled by \'.
* Horizontal rule should be at least 3 -, e.g. ---.
(However GitHub Flavor -- is still accepted.)
[1] http://commonmark.org
Change-Id: Ief189d0226901a284d9b86d9798310786ae1e983
diff --git a/lib/BUCK b/lib/BUCK
index 2e4205f..a7f0ee2 100644
--- a/lib/BUCK
+++ b/lib/BUCK
@@ -41,34 +41,44 @@
)
maven_jar(
- name = 'pegdown',
- id = 'org.pegdown:pegdown:1.4.2',
- sha1 = 'd96db502ed832df867ff5d918f05b51ba3879ea7',
- license = 'Apache2.0',
- deps = [':grappa'],
+ name = 'commonmark',
+ id = 'com.atlassian.commonmark:commonmark:0.5.0',
+ sha1 = '16a2927ba798d41f6d569b22c2639b27cf0288ae',
+ license = 'commonmark',
)
maven_jar(
- name = 'grappa',
- id = 'com.github.parboiled1:grappa:1.0.4',
- sha1 = 'ad4b44b9c305dad7aa1e680d4b5c8eec9c4fd6f5',
- license = 'Apache2.0',
+ name = 'cm-autolink',
+ id = 'com.atlassian.commonmark:commonmark-ext-autolink:0.5.0',
+ sha1 = '7bd5e683b32a1ba7849a355472409a0cfaf86176',
+ license = 'commonmark',
deps = [
- ':guava',
- ':jitescript',
- '//lib/ow2:ow2-asm',
- '//lib/ow2:ow2-asm-analysis',
- '//lib/ow2:ow2-asm-tree',
- '//lib/ow2:ow2-asm-util',
+ ':commonmark',
+ ':autolink',
],
)
maven_jar(
- name = 'jitescript',
- id = 'me.qmx.jitescript:jitescript:0.4.0',
- sha1 = '2e35862b0435c1b027a21f3d6eecbe50e6e08d54',
- license = 'Apache2.0',
- visibility = ['//lib:grappa'],
+ name = 'autolink',
+ id = 'org.nibor.autolink:autolink:0.4.0',
+ sha1 = '764f7b0147a0675d971a34282dce9ec76b8307c9',
+ license = 'autolink',
+)
+
+maven_jar(
+ name = 'gfm-strikethrough',
+ id = 'com.atlassian.commonmark:commonmark-ext-gfm-strikethrough:0.5.0',
+ sha1 = 'dd5679fdaae45a9f60250feb075a5b062719625e',
+ license = 'commonmark',
+ deps = [':commonmark'],
+)
+
+maven_jar(
+ name = 'gfm-tables',
+ id = 'com.atlassian.commonmark:commonmark-ext-gfm-tables:0.5.0',
+ sha1 = '082b177b9c886f4cad2c60374783081b04135528',
+ license = 'commonmark',
+ deps = [':commonmark'],
)
maven_jar(
diff --git a/lib/ow2/BUCK b/lib/ow2/BUCK
deleted file mode 100644
index c4339ce..0000000
--- a/lib/ow2/BUCK
+++ /dev/null
@@ -1,29 +0,0 @@
-VERSION = '5.0.3'
-
-maven_jar(
- name = 'ow2-asm',
- id = 'org.ow2.asm:asm:' + VERSION,
- sha1 = 'dcc2193db20e19e1feca8b1240dbbc4e190824fa',
- license = 'ow2',
-)
-
-maven_jar(
- name = 'ow2-asm-analysis',
- id = 'org.ow2.asm:asm-analysis:' + VERSION,
- sha1 = 'c7126aded0e8e13fed5f913559a0dd7b770a10f3',
- license = 'ow2',
-)
-
-maven_jar(
- name = 'ow2-asm-tree',
- id = 'org.ow2.asm:asm-tree:' + VERSION,
- sha1 = '287749b48ba7162fb67c93a026d690b29f410bed',
- license = 'ow2',
-)
-
-maven_jar(
- name = 'ow2-asm-util',
- id = 'org.ow2.asm:asm-util:' + VERSION,
- sha1 = '1512e5571325854b05fb1efce1db75fcced54389',
- license = 'ow2',
-)