Skip to content

Commit

Permalink
Add all HTML tags to autocomplete list
Browse files Browse the repository at this point in the history
  • Loading branch information
lukakerr committed Mar 17, 2019
1 parent 3865cd3 commit b0bcd44
Show file tree
Hide file tree
Showing 2 changed files with 127 additions and 11 deletions.
21 changes: 12 additions & 9 deletions Pine/Models/HTML.swift
Original file line number Diff line number Diff line change
Expand Up @@ -60,15 +60,18 @@ class HTML {
</head>
<body dir="\(dir)">
\(contents)
<script>
window.scrollTo(0, \(y));
</script>
<script>
renderMathInElement(document.body, {delimiters: [
{left: "$$", right: "$$", display: true},
{left: "$", right: "$", display: false},
]});
</script>
<div>
<script>
window.scrollTo(0, \(y));
</script>
<script>
renderMathInElement(document.body, {delimiters: [
{left: "$$", right: "$$", display: true},
{left: "$", right: "$", display: false},
]});
</script>
</div>
</body>
</html>
"""
Expand Down
117 changes: 115 additions & 2 deletions Resources/autocomplete/html.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,118 @@
<p>
<img>
<a>
<abbr>
<address>
<area>
<article>
<aside>
<audio>
<b>
<base>
<bdi>
<bdo>
<blockquote>
<body>
<br>
<button>
<canvas>
<caption>
<cite>
<code>
<col>
<colgroup>
<data>
<datalist>
<dd>
<del>
<details>
<dfn>
<dialog>
<div>
<dl>
<dt>
<em>
<embed>
<fieldset>
<figcaption>
<figure>
<footer>
<form>
<h1>
<h2>
<h3>
<h4>
<h5>
<h6>
<head>
<header>
<hgroup>
<hr>
<html>
<i>
<iframe>
<img>
<input>
<ins>
<kbd>
<keygen>
<label>
<legend>
<li>
<link>
<main>
<map>
<mark>
<math>
<menu>
<menuitem>
<meta>
<meter>
<nav>
<noscript>
<object>
<ol>
<optgroup>
<option>
<output>
<p>
<param>
<picture>
<pre>
<progress>
<q>
<rb>
<rp>
<rt>
<rtc>
<ruby>
<s>
<samp>
<script>
<section>
<select>
<slot>
<small>
<source>
<span>
<strong>
<style>
<sub>
<summary>
<sup>
<svg>
<table>
<tbody>
<td>
<template>
<textarea>
<tfoot>
<th>
<thead>
<time>
<title>
<tr>
<track>
<u>
<ul>
<var>
<video>
<wbr>

0 comments on commit b0bcd44

Please sign in to comment.