Skip to content

Commit

Permalink
temp
Browse files Browse the repository at this point in the history
  • Loading branch information
Carreau committed Nov 15, 2023
1 parent f0942d7 commit 3fe5eef
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions papyri/templates/macros.tpl.j2
Original file line number Diff line number Diff line change
@@ -1,10 +1,6 @@
e{% macro render_inner(type_, obj) -%}
{% if type_[0] == 'M' %}
{{ render_myst(obj) }}
{%- elif type_ == 'Directive' -%}
<!-- In theory we should never get Raw directive in final output --!>
{{ render_myst(obj) }}
{%- elif type_ == 'RefInfo' -%}
{%- if type_ == 'RefInfo' -%}
{{unreachable(type_, obj.__class__.__name__, obj.__dict__)}}
{# Links have : value, reference, kind exists#}
{%- if obj.kind=='local' -%}
<code><a link href="#{{obj.path}}" class='{{obj.kind}}'>{{obj.path}}</a></code>
Expand All @@ -13,7 +9,10 @@ e{% macro render_inner(type_, obj) -%}
{%- else %}
{{unreachable(type_, obj.__class__.__name__, obj.__dict__)}}
{%- endif -%}
{%- elif type_ in ('Math', 'Verbatim', 'Link') -%}
{%- elif type_ == 'Directive' -%}
<!-- In theory we should never get Raw directive in final output --!>
{{ render_myst(obj) }}
{%- elif type_ in ('Math', 'Verbatim', 'Link', 'MText','MEmphasis','MInlineCode') -%}
{{ render_myst(obj) }}
{%- elif type_ in ['SubstitutionRef','Unimplemented'] %}
{{unimplemented(type_, obj.__class__.__name__, obj.__dict__)}}
Expand Down

0 comments on commit 3fe5eef

Please sign in to comment.