Ben Kurtovic
8a9c9224be
Speed up parsing deeply nested syntax by caching bad routes ( fixes #42 )
Also removed the max cycles stop-gap, allowing much more complex pages
to be parsed quickly without losing nodes at the end
Also fixes #65 , fixes #102 , fixes #165 , fixes #183
Also fixes #81 (Rafael Nadal parsing bug)
Also fixes #53 , fixes #58 , fixes #88 , fixes #152 (duplicate issues)
7 yıl önce
Ben Kurtovic
aaffb7f66b
Update copyright for 2016.
8 yıl önce
Ben Kurtovic
f16c7e25ca
Fully fix parsing templates with blank names, I hope ( #111 )
9 yıl önce
Ben Kurtovic
e71e7b4ece
Update copyright years for 2015; fix whitespace in docs.
9 yıl önce
Ben Kurtovic
9fc4b909e1
Refactor a lot of table error recovery code.
10 yıl önce
David Winegar
213c105666
Table tags are no longer self-closing
Table tags no longer self-closing. Rows and cells now contain their
contents. Also refactored out an `emit_table_tag` method.
Note: this will require changes to the Tag node and possibly the builder,
those changes will be in the next commit.
10 yıl önce
David Winegar
406dd3a157
All tokenizer end methods return a stack
For C compatability, switch table cell end to return the stack.
Now context is kept by using `keep_context` when calling `self._pop()`.
10 yıl önce
David Winegar
e6ec5dc4de
Refactor methods to avoid returning tuples
Various changes to avoid returning tuples - working on the C tokenizer
made me realize this was a bad idea for compatability/similarity between
the two.
10 yıl önce
David Winegar
9e4bb0c7e5
Clean up and style changes
Added comments, tried to keep to 80 character lines.
10 yıl önce
David Winegar
a8d2983161
Started table parsing in PyTokenizer
Started parsing table support and added the start of table support.
This is a big commit (ugh) and it should probably be split up into
multiple smaller ones if possible, but that seems unworkable as of
right now because of all the dependencies. Also breaks tests of
CTokenizer (double ugh) because I haven't started table support there.
May want to pick line by line on this commit later but I need to save
my work for now.
10 yıl önce
Ben Kurtovic
87e0079512
Take proper advantage of Sphinx's default domains.
10 yıl önce
Ben Kurtovic
5c5fd6b3cb
Fix a bug involving nested links ( closes #61 and #62 ).
10 yıl önce
Ben Kurtovic
e5f17eea00
Update copyright notices for 2014.
10 yıl önce
Ben Kurtovic
066049b46a
Update email address.
11 yıl önce
Ben Kurtovic
fcdc0abd22
Fix autofail contexts.
11 yıl önce
Ben Kurtovic
d42e05a554
Implement improved wikilink handling.
11 yıl önce
Ben Kurtovic
cbf67c7842
Add hooks for some ext link stuff; add a INVALID_LINK aggregate context.
11 yıl önce
Ben Kurtovic
88f4fa7c37
Add external link contexts; reorder stuff for consistency.
11 yıl önce
Ben Kurtovic
d6e03ea5c5
Consolidate some code in _parse_comment()
11 yıl önce
Ben Kurtovic
bdb2a88612
Move some context definiions to contexts.py
11 yıl önce
Ben Kurtovic
4c0e4402b4
Only do a second pass if one would produce a different result.
11 yıl önce
Ben Kurtovic
28fa6a2037
Add some tests and a new context.
11 yıl önce
Ben Kurtovic
2a82a57b2d
Add support for bold and italic text (part one).
11 yıl önce
Ben Kurtovic
dd2a6f913b
Add support for dt, dd. Refactor. Fix some broken tests.
11 yıl önce
Ben Kurtovic
4cfa40685e
Clean up the way contexts are defined.
11 yıl önce
Ben Kurtovic
5f5a081d91
Rewrite tag parser to be cleaner and safer.
All tag tests passing. Still need to finish backslash support and
support for templates and tags within <open> tags.
11 yıl önce
Ben Kurtovic
0803417901
Port CTokenizer's verify_safe method to Python to solve a failing test.
11 yıl önce
Ben Kurtovic
cd5cc6a7d0
Update copyright notices for 2013.
11 yıl önce
Ben Kurtovic
a58c480639
Fix some usage of attrs; shorten a context, fix some behavior I broke.
11 yıl önce
Ben Kurtovic
d9f23b8faa
Really basic, messy, and fragile tag attribute support.
11 yıl önce
Ben Kurtovic
d1a9ba9a34
Starting tag work.
- Translation dict, contexts, parse_* and handle_* hooks in tokenizer.
11 yıl önce
Ben Kurtovic
3dbf0bc9bb
Fix heading/link code stripping; add WIKILINK contexts to documentation.
12 yıl önce
Ben Kurtovic
99e466857b
Support wikilinks in tokenizer.
12 yıl önce
Ben Kurtovic
65862befdc
Support comments in tokenizer.
12 yıl önce
Ben Kurtovic
c01f78aee1
Implement arguments in tokenizer - preliminary results are promising.
12 yıl önce
Ben Kurtovic
1caeb2d570
Build the actual Sphinx documentation, plus a number of typo fixes.
12 yıl önce
Ben Kurtovic
b2b49ebd80
More specific docs for contexts and tokenizer.
12 yıl önce
Ben Kurtovic
975be475d3
Document Builder and contexts.
12 yıl önce
Ben Kurtovic
e57b6bdd93
Support Headings in tokenizer; handle tokens backwards in builder.
* Some other fixes, additions.
12 yıl önce
Ben Kurtovic
d3ea962d27
Starting work on token contexts.
12 yıl önce
Ben Kurtovic
3633f31633
Relaive imports because they are awesome; more stuff in SmartList.
12 yıl önce
Ben Kurtovic
fca7e9dd80
Implement Heading, HTMLTag, HTMLTagAttribute, plus some fixes.
12 yıl önce
Ben Kurtovic
e4fd6ef127
Updating with a more logical project structure.
12 yıl önce
Ben Kurtovic
4cb3506820
Update copyright notice; some additions.
12 yıl önce
Ben Kurtovic
9d1e77000c
A bunch of updates from the past weeks.
12 yıl önce
Ben Kurtovic
a880ff8bf2
mwtemplateparserfromhell -> mwparserfromhell; some additions; still incomplete
12 yıl önce
Ben Kurtovic
ce8adf4b2e
Initial commit
12 yıl önce