diff options
author | Daniel Bergey <bergey@alum.mit.edu> | 2014-12-11 18:50:24 +0000 |
---|---|---|
committer | Daniel Bergey <bergey@alum.mit.edu> | 2014-12-12 14:45:45 +0000 |
commit | 689fb112bf925ce5394f88b48066be8abdc7fc34 (patch) | |
tree | dc8a04e12269d7057e8ad7a940a7ceb5bc9551bb /tests/rst-reader.rst | |
parent | 4e040160e0fce94a07e7ab5b4c5aebcf627ff1f6 (diff) | |
download | pandoc-689fb112bf925ce5394f88b48066be8abdc7fc34.tar.gz |
RST Reader: compute Attrs when role is defined
Move recursive role lookup from renderRole to addNewRole. The Attr value
will be the same for every occurance of this role, so there's no reason
to compute it every time. This allows simplifying the
stateRstCustomRoles map considerably.
We could go even further, and remove the fmt and attr arguments to
renderRole, which are null except for custom roles.
Diffstat (limited to 'tests/rst-reader.rst')
0 files changed, 0 insertions, 0 deletions