templates/default/fulldoc/markdown/setup.rb in yard-markdown-0.3.0 vs templates/default/fulldoc/markdown/setup.rb in yard-markdown-0.3.1
- old
+ new
@@ -92,21 +92,17 @@
def serialize(object)
template =
ERB.new(
'# <%= format_object_title object %>
-| | |
-| -----------------: | :----- |
<% if CodeObjects::ClassObject === object && object.superclass %>
- | **Inherits:** | <%= object.superclass %> |
-<% end %>
-<% [[:class, "Extended by"], [:instance, "Includes"]].each do |scope, name| %>
+**Inherits:** <%= object.superclass %>
+<% end %><% [[:class, "Extended by"], [:instance, "Includes"]].each do |scope, name| %>
<% if (mix = run_verifier(object.mixins(scope))).size > 0 %>
- | **<%= name %>:** | <%= mix.sort_by {|o| o.path }.join(", ") %> |
- <% end %>
-<% end %>
+**<%= name %>:** <%= mix.sort_by {|o| o.path }.join(", ") %>
+ <% end %><% end %>
<% unless object.root? %>
- | **Defined in:** | <%= object.file ? object.file : "(unknown)" %> |
+**Defined in:** <%= object.file ? object.file : "(unknown)" %>
<% end %>
<%= rdoc_to_md object.docstring %>