Skip to content

Instantly share code, notes, and snippets.

@Alhadis
Last active October 15, 2022 10:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Alhadis/417eb02c8d67471ec25695faf6f0a5dd to your computer and use it in GitHub Desktop.
Save Alhadis/417eb02c8d67471ec25695faf6f0a5dd to your computer and use it in GitHub Desktop.
Rendering tests

A block quotation.

solid cube_corner
	facet normal 0.0 -1.0 0.0
		outer loop
			vertex 0.0 0.0 0.0
			vertex 1.0 0.0 0.0
			vertex 0.0 0.0 1.0
		endloop
	endfacet
endsolid
sequenceDiagram
	participant dotcom
	participant iframe
	participant viewscreen
	dotcom->>iframe: loads html w/ iframe url
	iframe->>viewscreen: request template
	viewscreen->>iframe: html & javascript
	iframe->>dotcom: iframe ready
	dotcom->>iframe: set mermaid data on iframe
	iframe->>iframe: render mermaid
Display the source blob
Display the rendered blob
Raw
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Display the source blob
Display the rendered blob
Raw
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
flowchart LR;
	A[CI MULTI CHAPTCHA]-->B{Select captcha service by developer?};
	classDef green color:#022e1f,fill:#00f500;
	classDef red color:#022e1f,fill:#f11111;
	classDef white color:#022e1f,fill:#fff;
	classDef black color:#fff,fill:#000;
	B--YES-->C[How to use?]:::green;
	
	C-->U[I choose recaptcha.]:::green;
	U--Views-->Q["echo CIMC_JS('recaptcha');\n echo CIMC_HTML(['captcha_name'=>'recaptcha']);"]:::green;
	U--Controller-->W["CIMC_RULE('recaptcha');"]:::green;
	
	C-->I[I choose arcaptcha.]:::white;
	I--Views-->O["echo CIMC_JS('arcaptcha');\n echo CIMC_HTML(['captcha_name'=>'arcaptcha']);"]:::white;
	I--Controller-->P["CIMC_RULE('arcaptcha');"]:::white;
	
	C-->X[I choose bibot.]:::red;
	X--Views-->V["echo CIMC_JS('bibot');\n echo CIMC_HTML(['captcha_name'=>'bibot']);"]:::red;
	X--Controller-->N["CIMC_RULE('bibot');"]:::red;
	
	B--NO-->D[How to use?]:::black;
	D---Views:::black-->F["echo CIMC_JS('randomcaptcha');\n echo CIMC_HTML(['captcha_name'=>'randomcaptcha']);"]:::black; 
	D---Controller:::black-->T["CIMC_RULE('archaptcha,recaptcha,bibot');"]:::black;
<pre lang="javascript"><code>print(RegExp);</code></pre>
print(RegExp);
Text with footnote.<sup class="footnote-ref"><a href="#fn-1" id="fnref-1" data-footnote-ref>1</a></sup>

<section class="footnotes" data-footnotes>
	<ol>
		<li id="fn-1">
			<p>Footnote contents.<a href="#fnref-1" class="footnote-backref" data-footnote-backref aria-label="Back to content"></a></p>
		</li>
	</ol>
</section>

Text with footnote.1

Footnotes

  1. Footnote contents.

Before

flowchart LR;
    A-->B;
    B-->C;
    C-->D;
    click A callback "Tooltip for a callback"
    click B "http://www.github.com" "This is a tooltip for a link"
    click A call callback() "Tooltip for a callback"
    click B href "http://www.github.com" "This is a tooltip for a link"

After

sequenceDiagram
	participant dotcom
	participant iframe
	participant viewscreen
	dotcom->>iframe: loads html w/ iframe url
	iframe->>viewscreen: request template
	viewscreen->>iframe: html & javascript
	iframe->>dotcom: iframe ready
	dotcom->>iframe: set mermaid data on iframe
	iframe->>iframe: render mermaid

sequenceDiagram
	participant dotcom
	participant iframe
	participant viewscreen
	dotcom->>iframe: loads html w/ iframe url
	iframe->>viewscreen: request template
	viewscreen->>iframe: html & javascript
	iframe->>dotcom: iframe ready
	dotcom->>iframe: set mermaid data on iframe
	iframe->>iframe: render mermaid

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment