Commit 89932e09 authored by Mab's avatar Mab
Browse files

feat: add class to tag for parsing

so that every <p> is parsed as the first <p> kind of node defined by the schema
parent 274dc250
......@@ -45,7 +45,7 @@ const EditoriaSchema = {
},
parseDOM: [
{
tag: "p",
tag: "p.author",
getAttrs(dom) {
return {
class: dom.getAttribute("class")
......@@ -67,7 +67,7 @@ const EditoriaSchema = {
},
parseDOM: [
{
tag: "p",
tag: "p.epigraph-prose",
getAttrs(dom) {
return {
class: dom.getAttribute("class")
......@@ -89,7 +89,7 @@ const EditoriaSchema = {
},
parseDOM: [
{
tag: "p",
tag: "p.epigraph-poetry",
getAttrs(dom) {
return {
class: dom.getAttribute("class")
......@@ -111,7 +111,7 @@ const EditoriaSchema = {
},
parseDOM: [
{
tag: "p",
tag: "p.source-note",
getAttrs(dom) {
return {
class: dom.getAttribute("class")
......@@ -133,7 +133,7 @@ const EditoriaSchema = {
},
parseDOM: [
{
tag: "p",
tag: "p.paragraph-cont",
getAttrs(dom) {
return {
class: dom.getAttribute("class")
......@@ -155,7 +155,7 @@ const EditoriaSchema = {
},
parseDOM: [
{
tag: "p",
tag: "p.extract-prose",
getAttrs(dom) {
return {
class: dom.getAttribute("class")
......@@ -177,7 +177,7 @@ const EditoriaSchema = {
},
parseDOM: [
{
tag: "p",
tag: "p.extract-poetry",
getAttrs(dom) {
return {
class: dom.getAttribute("class")
......@@ -199,7 +199,7 @@ const EditoriaSchema = {
},
parseDOM: [
{
tag: "p",
tag: "p.title",
getAttrs(dom) {
return {
class: dom.getAttribute("class")
......@@ -221,7 +221,7 @@ const EditoriaSchema = {
},
parseDOM: [
{
tag: "p",
tag: "p.cst",
getAttrs(dom) {
return {
class: dom.getAttribute("class")
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment