Skip to content

How do I disable superfluous HTML style attributes when converting HTML to markdown or org-mode? #9783

Answered by TomBener
NightMachinery asked this question in Q&A
Discussion options

You must be logged in to vote

You could try to use markdown variants, such as markdown_strict. Copying your html to the clipboard (macOS) and then run the command pbpaste | pandoc -f html -t markdown_strict -o test.md, the output is as follows:

You can also explicitly specify the keyword argument; it need not be
simply the variable name prefixed with a colon. For example,

    (cl-defun bar (&key (a 1) ((baz b) 4)))

specifies a keyword `:a` that sets the variable `a` with default value
1, as well as a keyword `baz` that sets the variable `b` with default
value 4. In this case, because `baz` is not self-quoting, you must quote
it explicitly in the function call, like this:

Replies: 3 comments 9 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@NightMachinery
Comment options

Answer selected by NightMachinery
Comment options

You must be logged in to vote
8 replies
@jgm
Comment options

@NightMachinery
Comment options

@jgm
Comment options

@NightMachinery
Comment options

@jgm
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
4 participants