diff --git a/.gitignore b/.gitignore index ac2ab45..e43b0f9 100644 --- a/.gitignore +++ b/.gitignore @@ -1,44 +1 @@ -# Logs -logs -*.log -npm-debug.log* - -# Runtime data -pids -*.pid -*.seed -*.pid.lock - -# node-waf configuration -.lock-wscript - -# Compiled binary addons (http://nodejs.org/api/addons.html) -build/Release - -# Dependency directories -node_modules -bower_components -jspm_packages - -# Optional npm cache directory -.npm - -# Optional eslint cache -.eslintcache - -# Optional REPL history -.node_repl_history - -# Output of 'npm pack' -*.tgz - -# Yarn Integrity file -.yarn-integrity - -# Copied fonts -examples/fonts -dist -article-rendered.html - -# dependency graph -rollup-grapher.html +.DS_Store diff --git a/examples/article.html b/examples/article.html index 60264e2..0cf1974 100644 --- a/examples/article.html +++ b/examples/article.html @@ -17,14 +17,14 @@ - + - - - - -
-

We often think of Momentum as a means of dampening oscillations and speeding up the iterations, leading to faster convergence. But it has other interesting behavior. It allows a larger range of step-sizes to be used, and creates its own oscillations. What is going on?

-
- - - 1 -

A Brief Survey of Techniques

-

Before diving in: if you haven’t encountered t-SNE before, here’s what you need to know about the math behind it. The goal is to take a set of points in a high-dimensional space and find a faithful representation of those points in a lower-dimensional space, typically the 2D plane. The algorithm is non-linear and adapts to the underlying data, performing different transformations on different regions. Those differences can be a major source of confusion.

-

This is the first paragraph of the article. Test a long — dash -- here it is.

-

Test for owner's possessive. Test for "quoting a passage." And another sentence. Or two. Some flopping fins; for diving.

- -

Here's a test of an inline equation c = a^2 + b^2. Also with configurable katex standards just using inline '$' signs: $$x^2$$ And then there's a block equation:

- - c = \pm \sqrt{ \sum_{i=0}^{n}{a^{222} + b^2}} - -

Math can also be quite involved:

- - \frac{1}{\Bigl(\sqrt{\phi \sqrt{5}}-\phi\Bigr) e^{\frac25 \pi}} = 1+\frac{e^{-2\pi}} {1+\frac{e^{-4\pi}} {1+\frac{e^{-6\pi}} {1+\frac{e^{-8\pi}} {1+\cdots} } } } - - 1.1 -

Citations

-

-

We can also cite external publications. . We should also be testing footnotesThis will become a hoverable footnote. This will become a hoverable footnote. This will become a hoverable footnote. This will become a hoverable footnote. This will become a hoverable footnote. This will become a hoverable footnote. This will become a hoverable footnote. This will become a hoverable footnote.. There are multiple footnotes, and they appear in the appendixGiven I have coded them right. Also, here's math in a footnote: c = \sum_0^i{x}. Also, a citation. Box-ception! as well.

- 2 -

Displaying code snippets

-

Some inline javascript:var x = 25;. And here's a javascript code block.

- + + +
+

We often think of Momentum as a means of dampening oscillations and + speeding up the iterations, leading to faster convergence. But it has other interesting behavior. It allows a + larger range of step-sizes to be used, and creates its own oscillations. What is going on?

+
+ + + 1 +

A Brief Survey of Techniques

+

Before diving in: if you haven’t encountered t-SNE before, here’s what you need to know about the math behind it. + The goal is to take a set of points in a high-dimensional space and find a faithful representation of those points + in a lower-dimensional space, typically the 2D plane. The algorithm is non-linear and adapts to the underlying + data, performing different transformations on different regions. Those differences can be a major source of + confusion.

+

This is the first paragraph of the article. Test a long — dash -- here it is.

+

Test for owner's possessive. Test for "quoting a passage." And another sentence. Or two. Some flopping fins; for + diving.

+ +

Here's a test of an inline equation c = a^2 + b^2. Also with configurable katex standards just + using inline '$' signs: $$x^2$$ And then there's a block equation:

+ + c = \pm \sqrt{ \sum_{i=0}^{n}{a^{222} + b^2}} + +

Math can also be quite involved:

+ + \frac{1}{\Bigl(\sqrt{\phi \sqrt{5}}-\phi\Bigr) e^{\frac25 \pi}} = 1+\frac{e^{-2\pi}} {1+\frac{e^{-4\pi}} + {1+\frac{e^{-6\pi}} {1+\frac{e^{-8\pi}} {1+\cdots} } } } + + 1.1 +

Citations

+

+ +

+

We can also cite external publications. . We should also be testing footnotes + This will become a hoverable footnote. This will become a hoverable footnote. This will become a + hoverable footnote. This will become a hoverable footnote. This will become a hoverable footnote. This will + become a hoverable footnote. This will become a hoverable footnote. This will become a hoverable footnote. + . There are multiple footnotes, and they appear in the appendixGiven I have coded them + right. Also, here's math in a footnote: c = \sum_0^i{x}. Also, a citation. Box-ception! as well.

+ 2 +

Displaying code snippets

+

Some inline javascript:var x = 25;. And here's a javascript code block. +

+ var x = 25; function(x){ - return x * x; + return x * x; } - -

We also support python.

- - # Python 3: Fibonacci series up to n - def fib(n): + +

We also support python.

+ + # Python 3: Fibonacci series up to n + def fib(n): a, b = 0, 1 - while a < n: - print(a, end=' ') - a, b = b, a+b - -

And a table

- - - - - - - - - -
FirstSecondThird
2365423
145434
2345423
- - -

That's it for the example article!

+ while a < n: print(a, end=' ' ) a, b=b, a+b

And a table

+ + + + + + + + + + + + + + + + + + + + + + + + + +
FirstSecondThird
2365423
145434
2345423
+ + +

That's it for the example article!

-
+ - + -

Contributions

-

Some text describing who did what.

-

Reviewers

-

Some text with links describing who reviewed the article.

+

Contributions

+

Some text describing who did what.

+

Reviewers

+

Some text with links describing who reviewed the article.

- -
+ +
- + - + \ No newline at end of file diff --git a/src/components/d-cite.js b/src/components/d-cite.js index 5fdded3..c45450d 100644 --- a/src/components/d-cite.js +++ b/src/components/d-cite.js @@ -12,10 +12,12 @@ // See the License for the specific language governing permissions and // limitations under the License. -import { Template } from '../mixins/template'; -import { hover_cite, bibliography_cite } from '../helpers/citation'; +import { Template } from "../mixins/template"; +import { hover_cite, bibliography_cite } from "../helpers/citation"; -const T = Template('d-cite', ` +const T = Template( + "d-cite", + `