mirror of
https://github.com/TiddlyWiki/TiddlyWiki5.git
synced 2026-04-30 19:36:42 +00:00
19 lines
408 B
Plaintext
19 lines
408 B
Plaintext
title: ElementMapping/Basic
|
|
description: Mapping one element to another
|
|
type: text/vnd.tiddlywiki-multiple
|
|
tags: [[$:/tags/wiki-test-spec]]
|
|
|
|
title: Output
|
|
|
|
\whitespace trim
|
|
|
|
<!-- Map <p> to <div>, adding the class my-class -->
|
|
\define tv-map-p() div
|
|
\define tv-map-p-class() my-class
|
|
|
|
This is a paragraph
|
|
|
|
+
|
|
title: ExpectedResult
|
|
|
|
<div class="my-class" data-element-mapping-from="p">This is a paragraph</div> |