@wordpress/block-library
Version:
Block library for the WordPress editor.
1 lines • 740 B
Source Map (JSON)
{"version":3,"file":"save.cjs","names":["RawHTML"],"sources":["../../src/more/save.jsx"],"sourcesContent":["import { RawHTML } from '@wordpress/element';\n\nexport default function save( { attributes: { customText, noTeaser } } ) {\n\tconst moreTag = customText ? `<!--more ${ customText }-->` : '<!--more-->';\n\n\tconst noTeaserTag = noTeaser ? '<!--noteaser-->' : '';\n\n\treturn (\n\t\t<RawHTML>\n\t\t\t{ [ moreTag, noTeaserTag ].filter( Boolean ).join( '\\n' ) }\n\t\t</RawHTML>\n\t);\n}\n"],"mappings":";;;;;;;;AAEA,SAAwB,KAAM,EAAE,YAAY,EAAE,YAAY,cAAe;CACxE,MAAM,UAAU,aAAa,YAAa,WAAY,OAAO;CAI7D,OACC,iBAAA,GAAA,kBAAA,IAAA,CAACA,mBAAAA,SAAD,EAAA,UACG,CAAE,SAJc,WAAW,oBAAoB,EAIxB,CAAC,CAAC,OAAQ,OAAQ,CAAC,CAAC,KAAM,IAAK,EAChD,CAAA;AAEX"}