Skip to content

Commit

Permalink
ol parse
Browse files Browse the repository at this point in the history
  • Loading branch information
Xmaster6y committed Dec 28, 2023
1 parent d37c4fd commit e58b95c
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
8 changes: 7 additions & 1 deletion _plugins/custom-mark.rb
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,13 @@ def convert(content)
'<i class="fa-\1" href="#"></i> '\
'<em>\2</em></div> <ul>\3</ul> </blockquote>'
)

parsed_html = parsed_html.gsub(
/<blockquote>\s*<p>\[\!([a-z]{1,})\]((?:(?!blockquote).)*)<\/p>\s*<ol>((?:(?!blockquote).)*)<\/ol>\s*<\/blockquote>/m,
'<blockquote class="callout \1"> <div class="callout-title"> '\
'<i class="fa-\1" href="#"></i> '\
'<em>\2</em></div> <ol>\3</ol> </blockquote>'
)

parsed_html = parsed_html.gsub(/::(.*)::/, '<i class="fa-\1"></i>')
FA_CALLOUTS.each do |key, value|
parsed_html.gsub!(/<i class="fa-#{key}"/, "<i class=\"#{value}\"")
Expand Down
4 changes: 2 additions & 2 deletions pages/_drafts/layer-wise-relevance-propagation.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,5 +55,5 @@ $$

> [!quote] References
>
> [1] [[On Pixel-Wise Explanations for Non-Linear Classifier Decisions by Layer-Wise Relevance Propagation]]
> [2] [[A Rigorous Study Of The Deep Taylor Decomposition]]
> 1. [[On Pixel-Wise Explanations for Non-Linear Classifier Decisions by Layer-Wise Relevance Propagation]]
> 2. [[A Rigorous Study Of The Deep Taylor Decomposition]]

0 comments on commit e58b95c

Please sign in to comment.