* highlighting code changes
@ 2020-01-01 11:56 Don Raikes
2020-01-01 15:54 ` Gwern Branwen
2020-01-04 10:54 ` mb21
0 siblings, 2 replies; 3+ messages in thread
From: Don Raikes @ 2020-01-01 11:56 UTC (permalink / raw)
To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw
[-- Attachment #1: Type: text/plain, Size: 1657 bytes --]
Hello,
I am working on a tutorial in markdown in which I want to include code snippets.
I have found the pandoc-include-code filer which is great.
However, I want to highlight the "new" code.
For example:
In a javascript file
Define(["blah1","blah2","blah3"])
The other tricky part of this is that I need the highlighted code to be understood by screen readers for the blind. The output of the tutorial will be in html, and I know that I can use the <ins> </ins> html tags to delimit the inserted code.
Is there a way to either simply include the <ins> and </ins> tags in my code block or have pandoc-include-code or another filter insert them?
--
Thanks, Donald
"As a leader, to be successful, is to help the people around you to be successful." - Kent Boucher
Accessibility, like security, is better when built-in from the beginning rather than bolted on at the end.
http://www.oracle.com/
Donald Raikes | Accessibility Specialist
Mobile: HYPERLINK "tel:+15202717608"+15202717608 | VOIP: HYPERLINK "tel:+15205744033"+15205744033
Oracle Accessibility Program Office
| Tucson, Arizona
http://www.oracle.com/commitment
Oracle is committed to developing practices and products that help protect the environment
--
You received this message because you are subscribed to the Google Groups "pandoc-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
To view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/dd03c5b4-ea77-44a9-8cc8-57b468a260bd%40default.
[-- Attachment #2: Type: text/html, Size: 6870 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: highlighting code changes
2020-01-01 11:56 highlighting code changes Don Raikes
@ 2020-01-01 15:54 ` Gwern Branwen
2020-01-04 10:54 ` mb21
1 sibling, 0 replies; 3+ messages in thread
From: Gwern Branwen @ 2020-01-01 15:54 UTC (permalink / raw)
To: pandoc-discuss
[-- Attachment #1: Type: text/plain, Size: 719 bytes --]
The skylighting includes a 'Diff' syntax highlighting mode. Could you be
explicit about the deltas by providing diffs instead? Or does it *have* to
be inline? (If you use bolding for additions, how do you denote deletions?
Or changes which aren't additions?)
--
gwern
https://www.gwern.net
--
You received this message because you are subscribed to the Google Groups "pandoc-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
To view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/CAMwO0gzUkmuR%3DOcaN6wHbno3u321v7EfcssXbA%2BZR7S0fQ5VaQ%40mail.gmail.com.
[-- Attachment #2: Type: text/html, Size: 1185 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: highlighting code changes
2020-01-01 11:56 highlighting code changes Don Raikes
2020-01-01 15:54 ` Gwern Branwen
@ 2020-01-04 10:54 ` mb21
1 sibling, 0 replies; 3+ messages in thread
From: mb21 @ 2020-01-04 10:54 UTC (permalink / raw)
To: pandoc-discuss
[-- Attachment #1.1: Type: text/plain, Size: 2022 bytes --]
Perhaps this filter does what you
want? https://owickstrom.github.io/pandoc-emphasize-code/
On Wednesday, January 1, 2020 at 12:56:55 PM UTC+1, Don Raikes wrote:
>
> Hello,
>
>
>
> I am working on a tutorial in markdown in which I want to include code
> snippets.
>
>
>
> I have found the pandoc-include-code filer which is great.
>
> However, I want to highlight the “new” code.
>
>
>
> For example:
>
>
>
> In a javascript file
>
> Define([“blah1”,*”blah2”,”blah3*”])
>
>
>
> The other tricky part of this is that I need the highlighted code to be
> understood by screen readers for the blind. The output of the tutorial
> will be in html, and I know that I can use the <ins> </ins> html tags to
> delimit the inserted code.
>
>
>
> Is there a way to either simply include the <ins> and </ins> tags in my
> code block or have pandoc-include-code or another filter insert them?
>
>
>
> --
> Thanks, Donald
>
> “As a leader, to be successful, is to help the people around you to be
> successful.” – Kent Boucher
>
>
>
> Accessibility, like security, is better when built-in from the beginning
> rather than bolted on at the end.
>
>
> [image: Oracle] <http://www.oracle.com/>
> Donald Raikes | Accessibility Specialist
> Mobile: +15202717608 | VOIP: +15205744033
> Oracle Accessibility Program Office
> | Tucson, Arizona
>
> [image: Green Oracle] <http://www.oracle.com/commitment>
>
> Oracle is committed to developing practices and products that help protect
> the environment
>
>
>
--
You received this message because you are subscribed to the Google Groups "pandoc-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
To view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/f40c7f4d-9b4c-4adf-868f-8c2ad41abf2b%40googlegroups.com.
[-- Attachment #1.2: Type: text/html, Size: 6079 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2020-01-04 10:54 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-01-01 11:56 highlighting code changes Don Raikes
2020-01-01 15:54 ` Gwern Branwen
2020-01-04 10:54 ` mb21
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).