Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings
This repository was archived by the owner on Nov 8, 2022. It is now read-only.

Commit916ea66

Browse files
committed
refactor(editor-js): add class
1 parentcf7f3c6 commit916ea66

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

‎lib/helper/rich_text_parser.ex‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,14 +27,14 @@ defmodule Helper.RichTextParser do
2727
text=get_in(data,["text"])
2828
level=get_in(data,["level"])
2929

30-
"<h#{level}>#{text}</h#{level}>"
30+
"<h#{level} class=\"#{@html_class_prefix}-header\">#{text}</h#{level}>"
3131
end
3232

3333
# IO.inspect(data, label: "parse paragraph")
3434
defpparse_block(%{"type"=>"paragraph","data"=>data})do
3535
text=get_in(data,["text"])
3636

37-
"<p>#{text}</p>"
37+
"<p class=\"#{@html_class_prefix}-paragraph\">#{text}</p>"
3838
end
3939

4040
# IO.inspect(data, label: "parse image")

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp