Multiline Text Snippets

Followed the instruction, I have tried add multiline with Text Snippets Plugin with $nl$ but It did not work

What I want to insert before H1:

<div style="page-break-after: always"></div>   
[empty line]
[empty line]

Could you share me your solution ?

Hi, I give you an example of a multiline snippet like the one you need between other single-line snippets. You should configure this in the Text Snippet Settings page:

snippets : It is an obsidian plugin, that replaces your selected text.
multiline : <div style="page-break-after: always"></div>$nl$$nl$$end$
other : another text snippet

If you do not add the $end$ then you should add an empty line between the last 2 snippets.

snippets : It is an obsidian plugin, that replaces your selected text.
multiline : <div style="page-break-after: always"></div>$nl$$nl$

other : another text snippet

Check that the Newline mark is configured to $nl$ in the same settings page.

Thanks for your support,
The plugin does not add empty line as I expected.

Mean that: The text snippets converts header1 to body text. My expectation :

Could you consider the appropriate solution ?

Could you share the complete list of your text snippets to check them? Or just maybe the line for the “header1” and the following one

Here is my current snippet:

j2 : ## 🧭
j3 : ### 📕
j4 : #### 🥊
j5 : ##### 📢
z2 : [[
z3 : ]]
pbk : <div style="page-break-after: always"></div>$nl$$nl$$end$

Hi, I’ve copied and pasted exactly what you shared and it works like a charm.

I write “pbk”, press Ctrl + Tab and it is replaced by

<div style="page-break-after: always"></div>


From your first capture the $nl$ and $end$ do not get “processed” correctly by the plugin. Please check the following settings to assure the text is exactly $nl$ and $end$ with no spaces at the beginning nor at the end.

It works for me. Thanks @andrezgz :hugs: for your devoted help

1 Like

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.