lib/bolognese/writers/schema_org_writer.rb in bolognese-0.9.20 vs lib/bolognese/writers/schema_org_writer.rb in bolognese-0.9.21
- old
+ new
@@ -7,14 +7,14 @@
{ "@context" => id.present? ? "http://schema.org" : nil,
"@type" => type,
"@id" => id,
"url" => url,
"additionalType" => additional_type,
- "name" => name,
+ "name" => parse_attributes(title, content: "text", first: true),
"alternateName" => alternate_name,
"author" => to_schema_org(author),
"editor" => to_schema_org(editor),
- "description" => Array.wrap(description).map { |d| d["text"] }.compact.unwrap,
+ "description" => parse_attributes(description, content: "text", first: true),
"license" => Array.wrap(license).map { |l| l["id"] }.compact.unwrap,
"version" => version,
"keywords" => keywords,
"inLanguage" => language,
"contentSize" => content_size,