Questions tagged [html]
HTML (HyperText Markup Language) is the principal markup language used for structuring web pages and formatting content. The most recent revision to the HTML specification is HTML5.
215 questions
0
votes
0
answers
67
views
Embed HTML in Typescript with tree sitter
I would like emacs to parse the template string with the html parser in the following typescript code.
const template = document.createElement('template');
template.innerHTML = /* html */ `
<div ...
0
votes
1
answer
146
views
Problem about previewing TikZ svg from org-babel (org-mode 9.7) under dvisvgm (TeX Live)
I fully understand this is not new question, and relentlessly try to find the solution:
(Org) TikZ for exporting both LaTeX and HTML/MathJax
Minimal working example of tikz to svg in orgmode?
However, ...
0
votes
1
answer
79
views
org-publish images with org-attach broken HTML link
I have the following project-alist:
;; Define the publishing project
(setq org-publish-project-alist
'(
("notes"
:base-directory "./.."
:base-...
0
votes
1
answer
109
views
How to replace-regexp text to the head of an org-mode paragraph
M-x replace-regexp RET ^ RET your text RET will add "your text" to the start of every line of an emacs buffer, but how could I do the same to the start of every org-mode paragraph instead, i....
0
votes
1
answer
102
views
How to create book-style paragraphs in org mode for html export
I would like to use org-mode to create book-like page formatting where the paragraphs have no line gap between and the start of the paragraph is indented a tab's width for org-mode export to html.
I'...
1
vote
1
answer
258
views
When exporting to HTML, how to make org-attach links relative (instead absolute path)?
* test :ATTACH:
:PROPERTIES:
:ID: 26fe8748-2986-4806-b3ef-137401ba27ca
:END:
[[attachment:test.png]]
[[file:data/26/fe8748-2986-...
0
votes
1
answer
207
views
How to open an exported HTML file from Emacs and options for HTML preview
I'm working with Emacs in terminal mode (emacs -nw) from inside Windows cmd and have exported an Org file to HTML. Now I want to view the resulting HTML file. Here are my questions:
How can I open ...
2
votes
1
answer
64
views
How to make JS code retrieve data from an org-table?
Suppose the following org file:
#+name: data-input
|------------+------|
| Date | Kg |
|------------+------|
| 2024-08-03 | 74.9 |
| 2024-08-04 | 75.3 |
| 2024-08-05 | 74.4 |
| 2024-08-06 | 74....
2
votes
1
answer
127
views
Embed CSS file when org-exporting
I have a custom css file I include when exporting org files to HTML, by linking to it in the head section, like so:
(setq org-html-head "<!-- Site css -->
<link rel=\"stylesheet\&...
0
votes
0
answers
39
views
Error while compiling tidy.el
I downloaded tidy.el, an emacs package providing an interface to the HTML tidy program on this site:
https://www.html-tidy.org/
I encountered an error while trying to follow the installation ...
0
votes
0
answers
84
views
Latex rendition on HTML export
In Latex pdf export (C-c C-e l o) $m$ renders correctly as italics m but in HTML export (C-c C-e h o) it renders as Roman m.
Reverse slash Latex formulas like $\mathbb{N}$ render fine in both Latex ...
2
votes
1
answer
157
views
`org-html-export-to-html` not adding color for the code blocks
I have an org file with the following code block:
#+begin_src emacs-lisp
(+ 1 2)
#+end_src
And when I export it using M-x org-html-export-to-html, the code blocks in the generated file have no color.
...
-1
votes
2
answers
212
views
Web scraping traversal using dom.el, pcase error: Unknown pattern
I would like to traverse the dom tree, extract the text and build a list after visiting each node.
Implementing the recursion with the help of text-tag function returned an unknown pattern error.
The ...
0
votes
1
answer
104
views
Text extraction after dom traversal returns empty
I would like to extract the text from each visited node but while traversing and build a list.
I only get an empty result.
Here is the following attempt using dom.el
(defun extract-text-from-dom (dom-...
2
votes
0
answers
145
views
Disable syntax highlighting after single quote in HTML mode
I manually edit an HTML file which contains plain text and HTML tags. How can I prevent emacs' html-mode to treat single-quotes ' (i.e. apostrophes) as string separator? For example in <pre>This ...