From 6cd8fdcd6fd8e8509ee922719810f642cd003c48 Mon Sep 17 00:00:00 2001 From: Jarno Elovirta Date: Tue, 19 Dec 2023 18:30:56 +0200 Subject: [PATCH] Use @type in audience Fixes #203 Signed-off-by: Jarno Elovirta --- .../java/com/elovirta/dita/markdown/MetadataSerializerImpl.java | 2 +- src/test/resources/dita/ast.dita | 2 +- src/test/resources/dita/map/map_yaml.dita | 2 +- src/test/resources/dita/yaml.dita | 2 +- src/test/resources/xdita/map/map_yaml.dita | 2 +- src/test/resources/xdita/yaml.dita | 2 +- 6 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/main/java/com/elovirta/dita/markdown/MetadataSerializerImpl.java b/src/main/java/com/elovirta/dita/markdown/MetadataSerializerImpl.java index 3f75d0cd..e5854171 100644 --- a/src/main/java/com/elovirta/dita/markdown/MetadataSerializerImpl.java +++ b/src/main/java/com/elovirta/dita/markdown/MetadataSerializerImpl.java @@ -59,7 +59,7 @@ public void render(final YamlFrontMatterBlock node, final NodeRendererContext co header.containsKey(TOPIC_KEYWORD.localName) ) { html.startElement(node, TOPIC_METADATA, buildAtts(TOPIC_METADATA)); - write(header, TOPIC_AUDIENCE, ATTRIBUTE_NAME_AUDIENCE, html); + write(header, TOPIC_AUDIENCE, ATTRIBUTE_NAME_TYPE, html); write(header, TOPIC_CATEGORY, html); if (header.containsKey(TOPIC_KEYWORD.localName)) { html.startElement(node, TOPIC_KEYWORDS, buildAtts(TOPIC_KEYWORDS)); diff --git a/src/test/resources/dita/ast.dita b/src/test/resources/dita/ast.dita index 048da46f..5b39bb73 100644 --- a/src/test/resources/dita/ast.dita +++ b/src/test/resources/dita/ast.dita @@ -8,7 +8,7 @@ Publisher