Vytautas Šaltenis
|
a5270b6f56
|
Shorten method receivers in Smartypants
|
2016-07-28 19:26:25 +03:00 |
|
Vytautas Šaltenis
|
46b7355a78
|
Fix bullet points in MarkdownCommon docs
|
2016-07-28 19:23:04 +03:00 |
|
Vytautas Šaltenis
|
bd774a209a
|
More lint: smartypants.go
|
2016-07-27 21:45:25 +03:00 |
|
Vytautas Šaltenis
|
6d7f5e1bca
|
More lint: block.go
|
2016-07-27 21:40:45 +03:00 |
|
Vytautas Šaltenis
|
cd2f079140
|
More lint: inline.go
|
2016-07-27 21:31:29 +03:00 |
|
Vytautas Šaltenis
|
e054c962e7
|
More lint: markdown.go and ripples to other files
|
2016-07-27 21:28:41 +03:00 |
|
Vytautas Šaltenis
|
72633fddee
|
Lint node.go
|
2016-07-27 21:04:20 +03:00 |
|
Vytautas Šaltenis
|
f7ec3b0e34
|
Fix a few lint errors, a.k.a. improve docs
|
2016-07-27 10:11:13 +03:00 |
|
Vytautas Šaltenis
|
ce05617fea
|
Return *Latex from NewLatexRenderer
|
2016-07-27 09:47:58 +03:00 |
|
Vytautas Šaltenis
|
a4f1e5c786
|
Limit Node.String() to print itself, no children
|
2016-07-27 09:44:24 +03:00 |
|
Vytautas Šaltenis
|
89653c9927
|
Merge pull request #274 from Ambrevar/v2misc
v2: Implicit interface and Stringer
|
2016-07-27 09:39:58 +03:00 |
|
Vytautas Šaltenis
|
fd97b7d32f
|
Merge pull request #282 from russross/v2-fix-279
v2: Fix issue in fenced code block pre-processing.
|
2016-07-16 10:25:34 +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 |
|
Vytautas Šaltenis
|
6291a00f2f
|
Remove dead fields from HTMLRenderer
|
2016-07-05 07:33:21 +03:00 |
|
Vytautas Šaltenis
|
2f1f0b6b9f
|
Add RenderNode to Renderer interface
|
2016-07-05 07:32:16 +03:00 |
|
Vytautas Šaltenis
|
cb6bd67271
|
Remove dead HTMLWriter code
|
2016-07-04 22:02:22 +03:00 |
|
Vytautas Šaltenis
|
f90a576a05
|
Untangle some mess with attribute escaping
1. Remove unused preserveEntities parameters
2. Move attrEscape() implementation inside esc()
3. Delegate most of esc() work to escCode()
|
2016-07-02 10:45:06 +03:00 |
|
Vytautas Šaltenis
|
ab20da6e27
|
Merge pull request #275 from Ambrevar/v2css
v2: Fix empty path to CSS
|
2016-07-02 10:37:00 +03:00 |
|
Vytautas Šaltenis
|
7ee035eaa6
|
Merge pull request #276 from russross/v2-move-test-helpers-to-test-pkg
v2: Only include test helpers inside test package.
|
2016-07-02 10:31:14 +03:00 |
|
Dmitri Shuralyov
|
a41899bbac
|
v2: Only include test helpers inside test package.
|
2016-07-01 11:47:39 -07:00 |
|
Pierre Neidhardt
|
20aa621387
|
Fix empty path to CSS
|
2016-07-01 18:18:51 +02:00 |
|
Pierre Neidhardt
|
2e53c20b2f
|
Return a *HTMLRenderer from NewHTMLRenderer
Interfaces should be satisfied implicitly.
|
2016-07-01 17:23:30 +02:00 |
|
Pierre Neidhardt
|
37ffc1c86a
|
Make Node satisfy the Stringer interface
It allows for printing AST dumps in external code
|
2016-07-01 17:23:30 +02:00 |
|
Vytautas Šaltenis
|
3575453f08
|
Move a couple helpers to parser where they're used
|
2016-04-11 15:55:50 +03:00 |
|
Vytautas Šaltenis
|
76d8c71d70
|
Unduplicate attrEscape funcs
|
2016-04-11 15:55:50 +03:00 |
|
Vytautas Šaltenis
|
e95d23065a
|
Rename HTML to HTMLRenderer
|
2016-04-11 11:45:40 +03:00 |
|
Vytautas Šaltenis
|
c26fdef40e
|
Move html entity regexp to where it's used
And unify regexp variable names.
|
2016-04-11 11:45:19 +03:00 |
|
Vytautas Šaltenis
|
c207eca993
|
Clean up Renderer interface: remove all callbacks
We now expose the structure of the document in the form of AST, there's
no longer need to have all those callbacks to represent structure.
|
2016-04-11 11:22:38 +03:00 |
|
Vytautas Šaltenis
|
c9ea588e6f
|
Convert uint32 fields to ints
The former is a bit too inconvenient despite being more accurate.
|
2016-04-11 11:15:15 +03:00 |
|
Vytautas Šaltenis
|
98ddf98997
|
Get rid of unneeded method in Renderer
|
2016-04-11 11:12:41 +03:00 |
|
Vytautas Šaltenis
|
24e146a727
|
Make HTMLRendererParameters a substruct of HTML
|
2016-04-05 14:44:14 +03:00 |
|
Vytautas Šaltenis
|
9f5de868aa
|
Go style: take advantage of zero value init
|
2016-04-05 14:34:30 +03:00 |
|
Vytautas Šaltenis
|
1303ea1427
|
Cleanup renderer constructors
Move all parameters under HTMLRendererParameters struct, rename
constructors to New{HTML|Latex}Renderer.
|
2016-04-05 14:24:27 +03:00 |
|
Vytautas Šaltenis
|
4f8d2881a2
|
Remove a bit of cruft from HTML renderer
|
2016-04-05 13:54:57 +03:00 |
|
Vytautas Šaltenis
|
123179b8f3
|
Make Markdown the most general API call
Get rid of MarkdownOptions.
|
2016-04-05 13:45:00 +03:00 |
|
Vytautas Šaltenis
|
83b4cb6062
|
Implement SkipHTML, add test
|
2016-04-05 12:48:29 +03:00 |
|
Vytautas Šaltenis
|
7e9a57463f
|
Implement SkipStyle, add test
Fix a bug in findHtmlTagPos introduced with e02c392d .
|
2016-04-05 12:48:28 +03:00 |
|
Vytautas Šaltenis
|
fecfec2059
|
Implement SkipImages and add test
|
2016-04-05 12:48:28 +03:00 |
|
Vytautas Šaltenis
|
9da90c5929
|
Allow NodeVisitor to have some control over traversal
Make NodeVisitor return status and decide upon it which node to go to
next. So far, this allows to skip subtrees and quit early.
|
2016-04-05 12:48:28 +03:00 |
|
Vytautas Šaltenis
|
e7d45749ff
|
Give node visitor callback type a name and docs
|
2016-04-05 12:48:28 +03:00 |
|
Vytautas Šaltenis
|
76062d428d
|
Fixup broken test reporting
Dereference the pointer introduced in f35fae8 .
|
2016-04-05 12:48:20 +03:00 |
|
Vytautas Šaltenis
|
6bd31203b1
|
Add test for UseXHTML
|
2016-04-05 09:51:46 +03:00 |
|
Vytautas Šaltenis
|
106f1ec1bb
|
Add test for CompletePage flag
The implementation for CompletePage was committed with d7f1878 by
accident, following up with the test.
|
2016-04-04 14:17:16 +03:00 |
|
Vytautas Šaltenis
|
607478a8ce
|
Implement SkipLinks, add test
|
2016-04-04 14:08:35 +03:00 |
|
Vytautas Šaltenis
|
0774c060d7
|
Get rid of unnecessary test helpers
|
2016-04-04 14:00:26 +03:00 |
|
Vytautas Šaltenis
|
f35fae8188
|
Extract panic recovery code
Call recover() in a single place so it could be easily turned off when
not needed.
|
2016-04-04 13:13:57 +03:00 |
|
Vytautas Šaltenis
|
f1fd3a6412
|
Do away with doTestsInlineParam
What used to be doTestsBlockWithRunner is now renamed to
doTestsWithRunner and is good for both block and inline tests.
|
2016-04-04 12:18:06 +03:00 |
|
Vytautas Šaltenis
|
0c7120d6dc
|
Fix old omission in doTestsBlockWithRunner
It calls the provided runner in the -short run, but the standard runner
in the complete run. Fix that.
|
2016-04-04 12:09:36 +03:00 |
|
Vytautas Šaltenis
|
a658caacc6
|
Use TestParams in block tests
The different testing function interfaces get unified a bit closer,
runnerWithRendererParameters completely eliminated.
|
2016-04-04 12:04:20 +03:00 |
|
Vytautas Šaltenis
|
b069de6276
|
Wrap inline test parameters in a struct
Take advantage of zero value initialization.
|
2016-04-04 12:04:20 +03:00 |
|