|
@@ 476-491 (lines=16) @@
|
| 473 |
|
else: |
| 474 |
|
debug('[WARNING] pandoc-numbering: format-link-title is not correct for category ' + category) |
| 475 |
|
|
| 476 |
|
def meta_format_entry(category, definition, defined): |
| 477 |
|
if 'format-entry-classic' in definition: |
| 478 |
|
if isinstance(definition['format-entry-classic'], MetaInlines): |
| 479 |
|
defined[category]['format-entry-classic'] = definition['format-entry-classic'].content |
| 480 |
|
# Detach from original parent |
| 481 |
|
defined[category]['format-entry-classic'].parent = None |
| 482 |
|
else: |
| 483 |
|
debug('[WARNING] pandoc-numbering: format-entry-classic is not correct for category ' + category) |
| 484 |
|
|
| 485 |
|
if 'format-entry-title' in definition: |
| 486 |
|
if isinstance(definition['format-entry-title'], MetaInlines): |
| 487 |
|
defined[category]['format-entry-title'] = definition['format-entry-title'].content |
| 488 |
|
# Detach from original parent |
| 489 |
|
defined[category]['format-entry-title'].parent = None |
| 490 |
|
else: |
| 491 |
|
debug('[WARNING] pandoc-numbering: format-entry-title is not correct for category ' + category) |
| 492 |
|
|
| 493 |
|
def meta_entry_tab(category, definition, defined): |
| 494 |
|
if 'entry-tab' in definition and isinstance(definition['entry-tab'], MetaString): |
|
@@ 459-474 (lines=16) @@
|
| 456 |
|
else: |
| 457 |
|
debug('[WARNING] pandoc-numbering: format-text-title is not correct for category ' + category) |
| 458 |
|
|
| 459 |
|
def meta_format_link(category, definition, defined): |
| 460 |
|
if 'format-link-classic' in definition: |
| 461 |
|
if isinstance(definition['format-link-classic'], MetaInlines): |
| 462 |
|
defined[category]['format-link-classic'] = definition['format-link-classic'].content |
| 463 |
|
# Detach from original parent |
| 464 |
|
defined[category]['format-link-classic'].parent = None |
| 465 |
|
else: |
| 466 |
|
debug('[WARNING] pandoc-numbering: format-link-classic is not correct for category ' + category) |
| 467 |
|
|
| 468 |
|
if 'format-link-title' in definition: |
| 469 |
|
if isinstance(definition['format-link-title'], MetaInlines): |
| 470 |
|
defined[category]['format-link-title'] = definition['format-link-title'].content |
| 471 |
|
# Detach from original parent |
| 472 |
|
defined[category]['format-link-title'].parent = None |
| 473 |
|
else: |
| 474 |
|
debug('[WARNING] pandoc-numbering: format-link-title is not correct for category ' + category) |
| 475 |
|
|
| 476 |
|
def meta_format_entry(category, definition, defined): |
| 477 |
|
if 'format-entry-classic' in definition: |
|
@@ 442-457 (lines=16) @@
|
| 439 |
|
else: |
| 440 |
|
debug('[WARNING] pandoc-numbering: listing-title is not correct for category ' + category) |
| 441 |
|
|
| 442 |
|
def meta_format_text(category, definition, defined): |
| 443 |
|
if 'format-text-classic' in definition: |
| 444 |
|
if isinstance(definition['format-text-classic'], MetaInlines): |
| 445 |
|
defined[category]['format-text-classic'] = definition['format-text-classic'].content |
| 446 |
|
# Detach from original parent |
| 447 |
|
defined[category]['format-text-classic'].parent = None |
| 448 |
|
else: |
| 449 |
|
debug('[WARNING] pandoc-numbering: format-text-classic is not correct for category ' + category) |
| 450 |
|
|
| 451 |
|
if 'format-text-title' in definition: |
| 452 |
|
if isinstance(definition['format-text-title'], MetaInlines): |
| 453 |
|
defined[category]['format-text-title'] = definition['format-text-title'].content |
| 454 |
|
# Detach from original parent |
| 455 |
|
defined[category]['format-text-title'].parent = None |
| 456 |
|
else: |
| 457 |
|
debug('[WARNING] pandoc-numbering: format-text-title is not correct for category ' + category) |
| 458 |
|
|
| 459 |
|
def meta_format_link(category, definition, defined): |
| 460 |
|
if 'format-link-classic' in definition: |